mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8228753: Deprecate -XX:FieldsAllocationStyle product option
8228749: Deprecate product flag -XX:CompactFields Reviewed-by: kvn, shade
This commit is contained in:
parent
7b37608a65
commit
7c0a5865fb
3 changed files with 7 additions and 2 deletions
|
@ -537,6 +537,8 @@ static SpecialFlag const special_jvm_flags[] = {
|
|||
{ "ThreadLocalHandshakes", JDK_Version::jdk(13), JDK_Version::jdk(14), JDK_Version::jdk(15) },
|
||||
{ "AllowRedefinitionToAddDeleteMethods", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||
{ "FlightRecorder", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||
{ "FieldsAllocationStyle", JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
|
||||
{ "CompactFields", JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
|
||||
|
||||
// --- 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() },
|
||||
|
|
|
@ -788,13 +788,14 @@ const size_t minimumSymbolTableSize = 1024;
|
|||
"Use SSE2 MOVQ instruction for Arraycopy") \
|
||||
\
|
||||
product(intx, FieldsAllocationStyle, 1, \
|
||||
"0 - type based with oops first, " \
|
||||
"(Deprecated) 0 - type based with oops first, " \
|
||||
"1 - with oops last, " \
|
||||
"2 - oops in super and sub classes are together") \
|
||||
range(0, 2) \
|
||||
\
|
||||
product(bool, CompactFields, true, \
|
||||
"Allocate nonstatic fields in gaps between previous fields") \
|
||||
"(Deprecated) Allocate nonstatic fields in gaps " \
|
||||
"between previous fields") \
|
||||
\
|
||||
notproduct(bool, PrintFieldLayout, false, \
|
||||
"Print field layout for each class") \
|
||||
|
|
|
@ -46,6 +46,8 @@ public class VMDeprecatedOptions {
|
|||
{"InitialRAMFraction", "64"},
|
||||
{"TLABStats", "false"},
|
||||
{"AllowRedefinitionToAddDeleteMethods", "true"},
|
||||
{"CompactFields", "true"},
|
||||
{"FieldsAllocationStyle", "1"},
|
||||
|
||||
// deprecated alias flags (see also aliased_jvm_flags):
|
||||
{"DefaultMaxRAMFraction", "4"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue