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
8276901: Implement UseHeavyMonitors consistently #6320
Changes from 9 commits
e2ca9cf
f7b4c17
49dbc14
6a419ca
c266e45
818468e
4a95e03
4e30d0e
eca0051
f4f560a
76db976
dcba067
504cb79
4cba9d1
1225009
d1ec5b6
79090ed
706d1e8
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 |
---|---|---|
@@ -532,6 +532,9 @@ static SpecialFlag const special_jvm_flags[] = { | ||
{ "DynamicDumpSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() }, | ||
{ "RequireSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() }, | ||
{ "UseSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() }, | ||
#ifdef PRODUCT | ||
{ "UseHeavyMonitors", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::jdk(20) }, | ||
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. Per my CSR request comment this needs to be product only code. |
||
#endif | ||
|
||
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in: | ||
{ "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::undefined(), JDK_Version::undefined() }, | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1068,6 +1068,10 @@ const intx ObjectAlignmentInBytes = 8; | ||
product(bool, UseHeavyMonitors, false, \ | ||
"use heavyweight instead of lightweight Java monitors") \ | ||
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. For deprecated flags, make the description: 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. Also there's some test somewhere that you have to add this flag to. @dholmes-ora would know where that is. 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.
|
||
\ | ||
develop(bool, VerifyHeavyMonitors, false, \ | ||
"Checks that no stack locking happens when using " \ | ||
"+UseHeavyMonitors") \ | ||
\ | ||
product(bool, PrintStringTableStatistics, false, \ | ||
"print statistics about the StringTable and SymbolTable") \ | ||
\ | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than do this shouldn't
UseHeavyMonitors
andUseRTMForStackLocks
be mutually exclusive flags, checked in arguments.cpp?