Skip to content

Commit 095e769

Browse files
committed
8345237: 32-bit Zero builds fail with assert(has_klass_gap()) failed: precondition
Reviewed-by: mli, jwaters, rkennke
1 parent 1a7a184 commit 095e769

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,9 @@ void BytecodeInterpreter::run(interpreterState istate) {
20132013
oopDesc::release_set_mark(result, ik->prototype_header());
20142014
} else {
20152015
oopDesc::set_mark(result, markWord::prototype());
2016-
oopDesc::set_klass_gap(result, 0);
2016+
if (oopDesc::has_klass_gap()) {
2017+
oopDesc::set_klass_gap(result, 0);
2018+
}
20172019
oopDesc::release_set_klass(result, ik);
20182020
}
20192021
oop obj = cast_to_oop(result);

0 commit comments

Comments
 (0)