hotspot/src/share/vm/gc_implementation/g1/sparsePRT.cpp
changeset 2143 61babb9fbd6f
parent 1374 4c24294029a9
child 2996 1097030e5ec3
equal deleted inserted replaced
2142:032f4652700c 2143:61babb9fbd6f
   502 
   502 
   503 void SparsePRT::cleanup() {
   503 void SparsePRT::cleanup() {
   504   // Make sure that the current and next tables agree.  (Another mechanism
   504   // Make sure that the current and next tables agree.  (Another mechanism
   505   // takes care of deleting now-unused tables.)
   505   // takes care of deleting now-unused tables.)
   506   _cur = _next;
   506   _cur = _next;
       
   507   set_expanded(false);
   507 }
   508 }
   508 
   509 
   509 void SparsePRT::expand() {
   510 void SparsePRT::expand() {
   510   RSHashTable* last = _next;
   511   RSHashTable* last = _next;
   511   _next = new RSHashTable(last->capacity() * 2);
   512   _next = new RSHashTable(last->capacity() * 2);