Method and apparatus for optimizing the assignment of hash values to nodes residing in a garbage collected heap
First Claim
1. A computer controlled method for generating a hash value for a node allocated from a generational garbage collected heap associated with a global hash offset, wherein said method comprises steps of:
- (a) allocating said node within a creation area, said node having a node address;
(b) invoking a generate hash condition; and
(c) determining said hash value from said global hash offset and said node address.
2 Assignments
0 Petitions
Accused Products
Abstract
Apparatus, methods, systems, and computer program products are disclosed that generate a hash value for a node allocated from a generational garbage collected heap. The heap is associated with a global hash offset that is updated on every scavenge operation. This global hash offset is added to the address of the node to generate a hash offset. The hash offset is only generated upon a generate hash condition. The generate hash condition occurs when the hash value for the node is accessed or when the node is copied from the creation area. Thus, the invention generates hash values for nodes that require them while in the creation area of the heap. When the active nodes are copied from the creation area of the heap the hash value is generated as part of the copy process without additional memory accesses.
-
Citations
20 Claims
-
1. A computer controlled method for generating a hash value for a node allocated from a generational garbage collected heap associated with a global hash offset, wherein said method comprises steps of:
-
(a) allocating said node within a creation area, said node having a node address; (b) invoking a generate hash condition; and (c) determining said hash value from said global hash offset and said node address. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer system having a central processing unit (CPU) and a memory coupled to said CPU, for generating a hash value for a node allocated from a generational garbage collected heap associated with a global hash offset, said system comprising:
-
a node allocation mechanism configured to allocate said node within a creation area, said node having a node address; a hash condition invocation mechanism configured to invoke a generate hash condition; and a hash value determination mechanism configured to determine said hash value from said global hash offset and said node address upon invocation of the generate hash condition. - View Dependent Claims (7, 8, 9, 10)
-
-
11. An apparatus having a central processing unit (CPU) and a memory coupled to said CPU, for generating a hash value for a node allocated from a generational garbage collected heap associated with a global hash offset, said apparatus comprising:
-
a node allocation mechanism configured to allocate said node within a creation area, said node having a node address; a hash condition invocation mechanism configured to invoke a generate hash condition; and a hash value determination mechanism configured to determine said hash value from said global hash offset and said node address upon invocation of the generate hash condition. - View Dependent Claims (12, 13, 14, 15)
-
-
16. A computer program product comprising:
-
a computer usable storage medium having computer readable code embodied therein for generating a hash value for a node allocated from a generational garbage collected heap associated with a global hash offset, said computer readable code comprising; computer readable program code devices configured to cause said computer to effect a node allocation mechanism configured to allocate said node within a creation area, said node having a node address; computer readable program code devices configured to cause said computer to effect a hash condition invocation mechanism configured to invoke a generate hash condition; and computer readable program code devices configured to cause said computer to effect a hash value determination mechanism configured to determine said hash value from said global hash offset and said node address upon invocation of the generate hash condition. - View Dependent Claims (17, 18, 19, 20)
-
Specification