8332743: Update comment related to JDK-8320522
Reviewed-by: coleenp
This commit is contained in:
parent
6829d9ac67
commit
2a11e0da02
@ -223,20 +223,6 @@ JRT_ENTRY(void, InterpreterRuntime::_new(JavaThread* current, ConstantPool* pool
|
|||||||
// Make sure klass is initialized
|
// Make sure klass is initialized
|
||||||
klass->initialize(CHECK);
|
klass->initialize(CHECK);
|
||||||
|
|
||||||
// At this point the class may not be fully initialized
|
|
||||||
// because of recursive initialization. If it is fully
|
|
||||||
// initialized & has_finalized is not set, we rewrite
|
|
||||||
// it into its fast version (Note: no locking is needed
|
|
||||||
// here since this is an atomic byte write and can be
|
|
||||||
// done more than once).
|
|
||||||
//
|
|
||||||
// Note: In case of classes with has_finalized we don't
|
|
||||||
// rewrite since that saves us an extra check in
|
|
||||||
// the fast version which then would call the
|
|
||||||
// slow version anyway (and do a call back into
|
|
||||||
// Java).
|
|
||||||
// If we have a breakpoint, then we don't rewrite
|
|
||||||
// because the _breakpoint bytecode would be lost.
|
|
||||||
oop obj = klass->allocate_instance(CHECK);
|
oop obj = klass->allocate_instance(CHECK);
|
||||||
current->set_vm_result(obj);
|
current->set_vm_result(obj);
|
||||||
JRT_END
|
JRT_END
|
||||||
|
Loading…
x
Reference in New Issue
Block a user