aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/gc_implementation
diff options
context:
space:
mode:
authortschatzl <none@none>2014-09-03 09:24:07 +0200
committertschatzl <none@none>2014-09-03 09:24:07 +0200
commit3c545dd80352e94db11a8d01631dec60b3802ff9 (patch)
treee85a9a769e0a57d78432baa673e726c4465c3e39 /src/share/vm/gc_implementation
parentfc1d4bd8fd293c43852ef1db1cb672c21e596097 (diff)
downloadjdk8u_hotspot-3c545dd80352e94db11a8d01631dec60b3802ff9.tar.gz
8056043: Heap does not shrink within the heap after JDK-8038423
Summary: Enable shrinking within the heap by removing some code added for JDK-8054818. Enable the test case that checks that again too. Reviewed-by: jwilhelm, jmasa
Diffstat (limited to 'src/share/vm/gc_implementation')
-rw-r--r--src/share/vm/gc_implementation/g1/heapRegionManager.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/share/vm/gc_implementation/g1/heapRegionManager.cpp b/src/share/vm/gc_implementation/g1/heapRegionManager.cpp
index 50661699e..29f46b31f 100644
--- a/src/share/vm/gc_implementation/g1/heapRegionManager.cpp
+++ b/src/share/vm/gc_implementation/g1/heapRegionManager.cpp
@@ -351,10 +351,6 @@ uint HeapRegionManager::shrink_by(uint num_regions_to_remove) {
while ((removed < num_regions_to_remove) &&
(num_last_found = find_empty_from_idx_reverse(cur, &idx_last_found)) > 0) {
- // Only allow uncommit from the end of the heap.
- if ((idx_last_found + num_last_found) != _allocated_heapregions_length) {
- return 0;
- }
uint to_remove = MIN2(num_regions_to_remove - removed, num_last_found);
uncommit_regions(idx_last_found + num_last_found - to_remove, to_remove);