Invention Grant
- Patent Title: Optimized resizing for RCU-protected hash tables
- Patent Title (中): RCU保护哈希表优化调整大小
-
Application No.: US13455323Application Date: 2012-04-25
-
Publication No.: US09015133B2Publication Date: 2015-04-21
- Inventor: Paul E. McKenney , Joshua A. Triplett
- Applicant: Paul E. McKenney , Joshua A. Triplett
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Walter W. Duft
- Main IPC: G06F7/00
- IPC: G06F7/00 ; G06F17/00 ; G06F17/30 ; G06F13/14

Abstract:
A technique for resizing a first RCU-protected hash table stored in a memory. A second RCU-protected hash table is allocated in the memory as a resized version of the first hash table having a different number of hash buckets, with the hash buckets being defined but initially having no hash table elements. The second hash table is populated by linking each hash bucket thereof to all hash buckets of the first hash table containing elements that hash to the second hash bucket. The second hash table is then published so that it is available for searching by hash table readers. The first table is freed from memory after waiting for a grace period which guarantees that no readers searching the first hash table will be affected by the freeing.
Public/Granted literature
- US20130151524A1 Optimized Resizing For RCU-Protected Hash Tables Public/Granted day:2013-06-13
Information query