< prev index next > src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp
Print this page
oop obj = cast_to_oop(result);
// Initialize header
assert(!UseBiasedLocking, "Not implemented");
obj->set_mark(markWord::prototype());
- obj->set_klass_gap(0);
obj->set_klass(ik);
!
// Must prevent reordering of stores for object initialization
// with stores that publish the new object.
OrderAccess::storestore();
SET_STACK_OBJECT(obj, 0);
UPDATE_PC_AND_TOS_AND_CONTINUE(3, 1);
oop obj = cast_to_oop(result);
// Initialize header
assert(!UseBiasedLocking, "Not implemented");
+ #ifdef _LP64
+ oopDesc::release_set_mark(result, ik->prototype_header());
+ #else
obj->set_mark(markWord::prototype());
obj->set_klass(ik);
! #endif
// Must prevent reordering of stores for object initialization
// with stores that publish the new object.
OrderAccess::storestore();
SET_STACK_OBJECT(obj, 0);
UPDATE_PC_AND_TOS_AND_CONTINUE(3, 1);
< prev index next >