comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp @ 6885:685df3c6f84b

7045397: NPG: Add freelists to class loader arenas. Reviewed-by: coleenp, stefank, jprovino, ohair
author jmasa
date Tue, 18 Sep 2012 23:35:42 -0700
parents 633ba56cb013
children 0b54ffe4c2d3 203f64878aab
comparison
equal deleted inserted replaced
6877:d0e7716b179e 6885:685df3c6f84b
9141 // Find the chunk at the end of the space and determine 9141 // Find the chunk at the end of the space and determine
9142 // how much it can be shrunk. 9142 // how much it can be shrunk.
9143 size_t shrinkable_size_in_bytes = chunk_at_end->size(); 9143 size_t shrinkable_size_in_bytes = chunk_at_end->size();
9144 size_t aligned_shrinkable_size_in_bytes = 9144 size_t aligned_shrinkable_size_in_bytes =
9145 align_size_down(shrinkable_size_in_bytes, os::vm_page_size()); 9145 align_size_down(shrinkable_size_in_bytes, os::vm_page_size());
9146 assert(unallocated_start <= chunk_at_end->end(), 9146 assert(unallocated_start <= (HeapWord*) chunk_at_end->end(),
9147 "Inconsistent chunk at end of space"); 9147 "Inconsistent chunk at end of space");
9148 size_t bytes = MIN2(desired_bytes, aligned_shrinkable_size_in_bytes); 9148 size_t bytes = MIN2(desired_bytes, aligned_shrinkable_size_in_bytes);
9149 size_t word_size_before = heap_word_size(_virtual_space.committed_size()); 9149 size_t word_size_before = heap_word_size(_virtual_space.committed_size());
9150 9150
9151 // Shrink the underlying space 9151 // Shrink the underlying space
9208 } 9208 }
9209 } 9209 }
9210 9210
9211 assert(_cmsSpace->unallocated_block() <= _cmsSpace->end(), 9211 assert(_cmsSpace->unallocated_block() <= _cmsSpace->end(),
9212 "Inconsistency at end of space"); 9212 "Inconsistency at end of space");
9213 assert(chunk_at_end->end() == _cmsSpace->end(), 9213 assert(chunk_at_end->end() == (uintptr_t*) _cmsSpace->end(),
9214 "Shrinking is inconsistent"); 9214 "Shrinking is inconsistent");
9215 return; 9215 return;
9216 } 9216 }
9217 } 9217 }
9218 9218