diff options
Diffstat (limited to 'src/share/vm/gc_implementation/g1/heapRegion.cpp')
-rw-r--r-- | src/share/vm/gc_implementation/g1/heapRegion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/vm/gc_implementation/g1/heapRegion.cpp b/src/share/vm/gc_implementation/g1/heapRegion.cpp index bff10363d..6a5a9d8d0 100644 --- a/src/share/vm/gc_implementation/g1/heapRegion.cpp +++ b/src/share/vm/gc_implementation/g1/heapRegion.cpp @@ -290,7 +290,7 @@ void HeapRegion::setup_heap_region_size(uintx min_heap_size) { // Recalculate the region size to make sure it's a power of // 2. This means that region_size is the largest power of 2 that's // <= what we've calculated so far. - region_size = 1 << region_size_log; + region_size = ((uintx)1 << region_size_log); // Now make sure that we don't go over or under our limits. if (region_size < MIN_REGION_SIZE) { |