8228753: Deprecate -XX:FieldsAllocationStyle product option

8228749: Deprecate product flag -XX:CompactFields

Reviewed-by: kvn, shade
This commit is contained in:
Coleen Phillimore 2019-08-06 07:43:18 -04:00
parent 7b37608a65
commit 7c0a5865fb
3 changed files with 7 additions and 2 deletions

View file

@ -537,6 +537,8 @@ static SpecialFlag const special_jvm_flags[] = {
{ "ThreadLocalHandshakes", JDK_Version::jdk(13), JDK_Version::jdk(14), JDK_Version::jdk(15) }, { "ThreadLocalHandshakes", JDK_Version::jdk(13), JDK_Version::jdk(14), JDK_Version::jdk(15) },
{ "AllowRedefinitionToAddDeleteMethods", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() }, { "AllowRedefinitionToAddDeleteMethods", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
{ "FlightRecorder", 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: // --- 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() }, { "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::undefined(), JDK_Version::undefined() },

View file

@ -788,13 +788,14 @@ const size_t minimumSymbolTableSize = 1024;
"Use SSE2 MOVQ instruction for Arraycopy") \ "Use SSE2 MOVQ instruction for Arraycopy") \
\ \
product(intx, FieldsAllocationStyle, 1, \ product(intx, FieldsAllocationStyle, 1, \
"0 - type based with oops first, " \ "(Deprecated) 0 - type based with oops first, " \
"1 - with oops last, " \ "1 - with oops last, " \
"2 - oops in super and sub classes are together") \ "2 - oops in super and sub classes are together") \
range(0, 2) \ range(0, 2) \
\ \
product(bool, CompactFields, true, \ 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, \ notproduct(bool, PrintFieldLayout, false, \
"Print field layout for each class") \ "Print field layout for each class") \

View file

@ -46,6 +46,8 @@ public class VMDeprecatedOptions {
{"InitialRAMFraction", "64"}, {"InitialRAMFraction", "64"},
{"TLABStats", "false"}, {"TLABStats", "false"},
{"AllowRedefinitionToAddDeleteMethods", "true"}, {"AllowRedefinitionToAddDeleteMethods", "true"},
{"CompactFields", "true"},
{"FieldsAllocationStyle", "1"},
// deprecated alias flags (see also aliased_jvm_flags): // deprecated alias flags (see also aliased_jvm_flags):
{"DefaultMaxRAMFraction", "4"}, {"DefaultMaxRAMFraction", "4"},