-
Notifications
You must be signed in to change notification settings - Fork 124
8367767: [lworld] Interpreter adherence to new memory model rules for strict instance fields #1647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -154,7 +154,13 @@ AbstractInterpreter::MethodKind AbstractInterpreter::method_kind(const methodHan | |||||||||||||||||||||||
if (m->code_size() == 1) { | ||||||||||||||||||||||||
// We need to execute the special return bytecode to check for | ||||||||||||||||||||||||
// finalizer registration so create a normal frame. | ||||||||||||||||||||||||
// No need to use the method kind with a memory barrier on entry | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is correct because the return bytecode will be rewritten: valhalla/src/hotspot/share/interpreter/rewriter.cpp Lines 537 to 541 in 2abd3a9
->
And thus, this code will never be executed: valhalla/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp Lines 2310 to 2314 in 2abd3a9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I filed JDK-8369044. |
||||||||||||||||||||||||
// because the method is empty and already has a memory barrier on return | ||||||||||||||||||||||||
return zerolocals; | ||||||||||||||||||||||||
} else if (EnableValhalla) { | ||||||||||||||||||||||||
// For non-empty Object constructors, we need a memory barrier | ||||||||||||||||||||||||
// when entering the method to ensure correctness of strict fields | ||||||||||||||||||||||||
return object_init; | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
break; | ||||||||||||||||||||||||
default: break; | ||||||||||||||||||||||||
|
@@ -303,6 +309,7 @@ void AbstractInterpreter::print_method_kind(MethodKind kind) { | |||||||||||||||||||||||
case getter : tty->print("getter" ); break; | ||||||||||||||||||||||||
case setter : tty->print("setter" ); break; | ||||||||||||||||||||||||
case abstract : tty->print("abstract" ); break; | ||||||||||||||||||||||||
case object_init : tty->print("object_init" ); break; | ||||||||||||||||||||||||
case java_lang_math_sin : tty->print("java_lang_math_sin" ); break; | ||||||||||||||||||||||||
case java_lang_math_cos : tty->print("java_lang_math_cos" ); break; | ||||||||||||||||||||||||
case java_lang_math_tan : tty->print("java_lang_math_tan" ); break; | ||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.