Skip to content

Commit 5cdaaf3

Browse files
Xiaolong PengPaul Hohensee
authored andcommitted
8361948: Shenandoah: region free capacity unit mismatch
Backport-of: 46988e1073e9a2b47491c90143b1f261fe56da56
1 parent b20f66f commit 5cdaaf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ HeapWord* ShenandoahFreeSet::allocate_from_regions(Iter& iterator, ShenandoahAll
880880
for (idx_t idx = iterator.current(); iterator.has_next(); idx = iterator.next()) {
881881
ShenandoahHeapRegion* r = _heap->get_region(idx);
882882
size_t min_size = (req.type() == ShenandoahAllocRequest::_alloc_tlab) ? req.min_size() : req.size();
883-
if (alloc_capacity(r) >= min_size) {
883+
if (alloc_capacity(r) >= min_size * HeapWordSize) {
884884
HeapWord* result = try_allocate_in(r, req, in_new_region);
885885
if (result != nullptr) {
886886
return result;

0 commit comments

Comments
 (0)