Skip to content

Commit 263bf8a

Browse files
committedFeb 25, 2025
8350630: [lworld] ObjBufferAllocator::initialize fails with assert(has_klass_gap()) failed: precondition
1 parent a5cd110 commit 263bf8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/gc/shared/memAllocator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ oop ObjAllocator::initialize(HeapWord* mem) const {
390390
}
391391

392392
oop ObjBufferAllocator::initialize(HeapWord* mem) const {
393-
oopDesc::set_klass_gap(mem, 0);
393+
mem_clear(mem);
394394
return finish(mem);
395395
}
396396

0 commit comments

Comments
 (0)
Please sign in to comment.