8236224: Obsolete the FieldsAllocationStyle and CompactFields options
Remove the options and code for options deprecated in JDK 14 Reviewed-by: dholmes, hseigel, fparain
This commit is contained in:
parent
ee5729ac21
commit
c4b8e38de4
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -181,8 +181,6 @@ void AOTLib::verify_config() {
|
|||||||
verify_flag(_config->_useBiasedLocking, UseBiasedLocking, "UseBiasedLocking");
|
verify_flag(_config->_useBiasedLocking, UseBiasedLocking, "UseBiasedLocking");
|
||||||
verify_flag(_config->_objectAlignment, ObjectAlignmentInBytes, "ObjectAlignmentInBytes");
|
verify_flag(_config->_objectAlignment, ObjectAlignmentInBytes, "ObjectAlignmentInBytes");
|
||||||
verify_flag(_config->_contendedPaddingWidth, ContendedPaddingWidth, "ContendedPaddingWidth");
|
verify_flag(_config->_contendedPaddingWidth, ContendedPaddingWidth, "ContendedPaddingWidth");
|
||||||
verify_flag(_config->_fieldsAllocationStyle, FieldsAllocationStyle, "FieldsAllocationStyle");
|
|
||||||
verify_flag(_config->_compactFields, CompactFields, "CompactFields");
|
|
||||||
verify_flag(_config->_enableContended, EnableContended, "EnableContended");
|
verify_flag(_config->_enableContended, EnableContended, "EnableContended");
|
||||||
verify_flag(_config->_restrictContended, RestrictContended, "RestrictContended");
|
verify_flag(_config->_restrictContended, RestrictContended, "RestrictContended");
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -92,21 +92,19 @@ typedef struct {
|
|||||||
} AOTHeader;
|
} AOTHeader;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
enum { CONFIG_SIZE = 8 * jintSize + 10 };
|
enum { CONFIG_SIZE = 7 * jintSize + 9 };
|
||||||
// 8 int values
|
// 7 int values
|
||||||
int _config_size;
|
int _config_size;
|
||||||
int _narrowOopShift;
|
int _narrowOopShift;
|
||||||
int _narrowKlassShift;
|
int _narrowKlassShift;
|
||||||
int _contendedPaddingWidth;
|
int _contendedPaddingWidth;
|
||||||
int _fieldsAllocationStyle;
|
|
||||||
int _objectAlignment;
|
int _objectAlignment;
|
||||||
int _codeSegmentSize;
|
int _codeSegmentSize;
|
||||||
int _gc;
|
int _gc;
|
||||||
// byte[11] array map to boolean values here
|
// byte[9] array map to boolean values here
|
||||||
bool _debug_VM;
|
bool _debug_VM;
|
||||||
bool _useCompressedOops;
|
bool _useCompressedOops;
|
||||||
bool _useCompressedClassPointers;
|
bool _useCompressedClassPointers;
|
||||||
bool _compactFields;
|
|
||||||
bool _useTLAB;
|
bool _useTLAB;
|
||||||
bool _useBiasedLocking;
|
bool _useBiasedLocking;
|
||||||
bool _tieredAOT;
|
bool _tieredAOT;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -4129,25 +4129,14 @@ void ClassFileParser::layout_fields(ConstantPool* cp,
|
|||||||
|
|
||||||
int first_nonstatic_oop_offset = 0; // will be set for first oop field
|
int first_nonstatic_oop_offset = 0; // will be set for first oop field
|
||||||
|
|
||||||
bool compact_fields = CompactFields;
|
bool compact_fields = true;
|
||||||
int allocation_style = FieldsAllocationStyle;
|
bool allocate_oops_first = false;
|
||||||
if( allocation_style < 0 || allocation_style > 2 ) { // Out of range?
|
|
||||||
assert(false, "0 <= FieldsAllocationStyle <= 2");
|
|
||||||
allocation_style = 1; // Optimistic
|
|
||||||
}
|
|
||||||
|
|
||||||
// The next classes have predefined hard-coded fields offsets
|
// The next classes have predefined hard-coded fields offsets
|
||||||
// (see in JavaClasses::compute_hard_coded_offsets()).
|
// (see in JavaClasses::compute_hard_coded_offsets()).
|
||||||
// Use default fields allocation order for them.
|
// Use default fields allocation order for them.
|
||||||
if( (allocation_style != 0 || compact_fields ) && _loader_data->class_loader() == NULL &&
|
if (_loader_data->class_loader() == NULL &&
|
||||||
(_class_name == vmSymbols::java_lang_AssertionStatusDirectives() ||
|
(_class_name == vmSymbols::java_lang_ref_Reference() ||
|
||||||
_class_name == vmSymbols::java_lang_Class() ||
|
|
||||||
_class_name == vmSymbols::java_lang_ClassLoader() ||
|
|
||||||
_class_name == vmSymbols::java_lang_ref_Reference() ||
|
|
||||||
_class_name == vmSymbols::java_lang_ref_SoftReference() ||
|
|
||||||
_class_name == vmSymbols::java_lang_StackTraceElement() ||
|
|
||||||
_class_name == vmSymbols::java_lang_String() ||
|
|
||||||
_class_name == vmSymbols::java_lang_Throwable() ||
|
|
||||||
_class_name == vmSymbols::java_lang_Boolean() ||
|
_class_name == vmSymbols::java_lang_Boolean() ||
|
||||||
_class_name == vmSymbols::java_lang_Character() ||
|
_class_name == vmSymbols::java_lang_Character() ||
|
||||||
_class_name == vmSymbols::java_lang_Float() ||
|
_class_name == vmSymbols::java_lang_Float() ||
|
||||||
@ -4156,7 +4145,7 @@ void ClassFileParser::layout_fields(ConstantPool* cp,
|
|||||||
_class_name == vmSymbols::java_lang_Short() ||
|
_class_name == vmSymbols::java_lang_Short() ||
|
||||||
_class_name == vmSymbols::java_lang_Integer() ||
|
_class_name == vmSymbols::java_lang_Integer() ||
|
||||||
_class_name == vmSymbols::java_lang_Long())) {
|
_class_name == vmSymbols::java_lang_Long())) {
|
||||||
allocation_style = 0; // Allocate oops first
|
allocate_oops_first = true; // Allocate oops first
|
||||||
compact_fields = false; // Don't compact fields
|
compact_fields = false; // Don't compact fields
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4164,35 +4153,14 @@ void ClassFileParser::layout_fields(ConstantPool* cp,
|
|||||||
int next_nonstatic_double_offset = 0;
|
int next_nonstatic_double_offset = 0;
|
||||||
|
|
||||||
// Rearrange fields for a given allocation style
|
// Rearrange fields for a given allocation style
|
||||||
if( allocation_style == 0 ) {
|
if (allocate_oops_first) {
|
||||||
// Fields order: oops, longs/doubles, ints, shorts/chars, bytes, padded fields
|
// Fields order: oops, longs/doubles, ints, shorts/chars, bytes, padded fields
|
||||||
next_nonstatic_oop_offset = next_nonstatic_field_offset;
|
next_nonstatic_oop_offset = next_nonstatic_field_offset;
|
||||||
next_nonstatic_double_offset = next_nonstatic_oop_offset +
|
next_nonstatic_double_offset = next_nonstatic_oop_offset +
|
||||||
(nonstatic_oop_count * heapOopSize);
|
(nonstatic_oop_count * heapOopSize);
|
||||||
} else if( allocation_style == 1 ) {
|
} else {
|
||||||
// Fields order: longs/doubles, ints, shorts/chars, bytes, oops, padded fields
|
// Fields order: longs/doubles, ints, shorts/chars, bytes, oops, padded fields
|
||||||
next_nonstatic_double_offset = next_nonstatic_field_offset;
|
next_nonstatic_double_offset = next_nonstatic_field_offset;
|
||||||
} else if( allocation_style == 2 ) {
|
|
||||||
// Fields allocation: oops fields in super and sub classes are together.
|
|
||||||
if( nonstatic_field_size > 0 && _super_klass != NULL &&
|
|
||||||
_super_klass->nonstatic_oop_map_size() > 0 ) {
|
|
||||||
const unsigned int map_count = _super_klass->nonstatic_oop_map_count();
|
|
||||||
const OopMapBlock* const first_map = _super_klass->start_of_nonstatic_oop_maps();
|
|
||||||
const OopMapBlock* const last_map = first_map + map_count - 1;
|
|
||||||
const int next_offset = last_map->offset() + (last_map->count() * heapOopSize);
|
|
||||||
if (next_offset == next_nonstatic_field_offset) {
|
|
||||||
allocation_style = 0; // allocate oops first
|
|
||||||
next_nonstatic_oop_offset = next_nonstatic_field_offset;
|
|
||||||
next_nonstatic_double_offset = next_nonstatic_oop_offset +
|
|
||||||
(nonstatic_oop_count * heapOopSize);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if( allocation_style == 2 ) {
|
|
||||||
allocation_style = 1; // allocate oops last
|
|
||||||
next_nonstatic_double_offset = next_nonstatic_field_offset;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
ShouldNotReachHere();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int nonstatic_oop_space_count = 0;
|
int nonstatic_oop_space_count = 0;
|
||||||
@ -4236,7 +4204,7 @@ void ClassFileParser::layout_fields(ConstantPool* cp,
|
|||||||
// Allocate oop field in the gap if there are no other fields for that.
|
// Allocate oop field in the gap if there are no other fields for that.
|
||||||
nonstatic_oop_space_offset = offset;
|
nonstatic_oop_space_offset = offset;
|
||||||
if (length >= heapOopSize && nonstatic_oop_count > 0 &&
|
if (length >= heapOopSize && nonstatic_oop_count > 0 &&
|
||||||
allocation_style != 0) { // when oop fields not first
|
!allocate_oops_first) { // when oop fields not first
|
||||||
nonstatic_oop_count -= 1;
|
nonstatic_oop_count -= 1;
|
||||||
nonstatic_oop_space_count = 1; // Only one will fit
|
nonstatic_oop_space_count = 1; // Only one will fit
|
||||||
length -= heapOopSize;
|
length -= heapOopSize;
|
||||||
@ -4255,7 +4223,7 @@ void ClassFileParser::layout_fields(ConstantPool* cp,
|
|||||||
nonstatic_byte_count;
|
nonstatic_byte_count;
|
||||||
|
|
||||||
// let oops jump before padding with this allocation style
|
// let oops jump before padding with this allocation style
|
||||||
if( allocation_style == 1 ) {
|
if (!allocate_oops_first) {
|
||||||
next_nonstatic_oop_offset = next_nonstatic_padded_offset;
|
next_nonstatic_oop_offset = next_nonstatic_padded_offset;
|
||||||
if( nonstatic_oop_count > 0 ) {
|
if( nonstatic_oop_count > 0 ) {
|
||||||
next_nonstatic_oop_offset = align_up(next_nonstatic_oop_offset, heapOopSize);
|
next_nonstatic_oop_offset = align_up(next_nonstatic_oop_offset, heapOopSize);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -197,12 +197,10 @@ JVMCIObjectArray CompilerToVM::initialize_intrinsics(JVMCI_TRAPS) {
|
|||||||
do_bool_flag(CITimeEach) \
|
do_bool_flag(CITimeEach) \
|
||||||
do_uintx_flag(CodeCacheSegmentSize) \
|
do_uintx_flag(CodeCacheSegmentSize) \
|
||||||
do_intx_flag(CodeEntryAlignment) \
|
do_intx_flag(CodeEntryAlignment) \
|
||||||
do_bool_flag(CompactFields) \
|
|
||||||
do_intx_flag(ContendedPaddingWidth) \
|
do_intx_flag(ContendedPaddingWidth) \
|
||||||
do_bool_flag(DontCompileHugeMethods) \
|
do_bool_flag(DontCompileHugeMethods) \
|
||||||
do_bool_flag(EagerJVMCI) \
|
do_bool_flag(EagerJVMCI) \
|
||||||
do_bool_flag(EnableContended) \
|
do_bool_flag(EnableContended) \
|
||||||
do_intx_flag(FieldsAllocationStyle) \
|
|
||||||
do_bool_flag(FoldStableValues) \
|
do_bool_flag(FoldStableValues) \
|
||||||
do_bool_flag(ForceUnreachable) \
|
do_bool_flag(ForceUnreachable) \
|
||||||
do_intx_flag(HugeMethodLimit) \
|
do_intx_flag(HugeMethodLimit) \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -522,8 +522,6 @@ static SpecialFlag const special_jvm_flags[] = {
|
|||||||
{ "UseMembar", JDK_Version::jdk(10), JDK_Version::jdk(12), JDK_Version::undefined() },
|
{ "UseMembar", JDK_Version::jdk(10), JDK_Version::jdk(12), JDK_Version::undefined() },
|
||||||
{ "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) },
|
|
||||||
{ "MonitorBound", JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
|
{ "MonitorBound", JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
|
||||||
{ "UseParallelOldGC", JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
|
{ "UseParallelOldGC", JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
|
||||||
|
|
||||||
@ -543,6 +541,8 @@ static SpecialFlag const special_jvm_flags[] = {
|
|||||||
{ "UseGCTaskAffinity", JDK_Version::undefined(), JDK_Version::jdk(14), JDK_Version::jdk(16) },
|
{ "UseGCTaskAffinity", JDK_Version::undefined(), JDK_Version::jdk(14), JDK_Version::jdk(16) },
|
||||||
{ "GCTaskTimeStampEntries", JDK_Version::undefined(), JDK_Version::jdk(14), JDK_Version::jdk(16) },
|
{ "GCTaskTimeStampEntries", JDK_Version::undefined(), JDK_Version::jdk(14), JDK_Version::jdk(16) },
|
||||||
{ "G1RSetScanBlockSize", JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
|
{ "G1RSetScanBlockSize", 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) },
|
||||||
|
{ "FieldsAllocationStyle", JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
|
||||||
|
|
||||||
#ifdef TEST_VERIFY_SPECIAL_JVM_FLAGS
|
#ifdef TEST_VERIFY_SPECIAL_JVM_FLAGS
|
||||||
// These entries will generate build errors. Their purpose is to test the macros.
|
// These entries will generate build errors. Their purpose is to test the macros.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -778,16 +778,6 @@ const size_t minimumSymbolTableSize = 1024;
|
|||||||
product(bool, UseXMMForArrayCopy, false, \
|
product(bool, UseXMMForArrayCopy, false, \
|
||||||
"Use SSE2 MOVQ instruction for Arraycopy") \
|
"Use SSE2 MOVQ instruction for Arraycopy") \
|
||||||
\
|
\
|
||||||
product(intx, FieldsAllocationStyle, 1, \
|
|
||||||
"(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, \
|
|
||||||
"(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") \
|
||||||
\
|
\
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -338,7 +338,6 @@ public final class BinaryContainer implements SymbolTable {
|
|||||||
boolean[] booleanFlags = { graalHotSpotVMConfig.cAssertions, // Debug VM
|
boolean[] booleanFlags = { graalHotSpotVMConfig.cAssertions, // Debug VM
|
||||||
graalHotSpotVMConfig.useCompressedOops,
|
graalHotSpotVMConfig.useCompressedOops,
|
||||||
graalHotSpotVMConfig.useCompressedClassPointers,
|
graalHotSpotVMConfig.useCompressedClassPointers,
|
||||||
graalHotSpotVMConfig.compactFields,
|
|
||||||
graalHotSpotVMConfig.useTLAB,
|
graalHotSpotVMConfig.useTLAB,
|
||||||
graalHotSpotVMConfig.useBiasedLocking,
|
graalHotSpotVMConfig.useBiasedLocking,
|
||||||
TieredAOT.getValue(graalOptions),
|
TieredAOT.getValue(graalOptions),
|
||||||
@ -350,7 +349,6 @@ public final class BinaryContainer implements SymbolTable {
|
|||||||
int[] intFlags = { graalHotSpotVMConfig.getOopEncoding().getShift(),
|
int[] intFlags = { graalHotSpotVMConfig.getOopEncoding().getShift(),
|
||||||
graalHotSpotVMConfig.getKlassEncoding().getShift(),
|
graalHotSpotVMConfig.getKlassEncoding().getShift(),
|
||||||
graalHotSpotVMConfig.contendedPaddingWidth,
|
graalHotSpotVMConfig.contendedPaddingWidth,
|
||||||
graalHotSpotVMConfig.fieldsAllocationStyle,
|
|
||||||
1 << graalHotSpotVMConfig.logMinObjAlignment(),
|
1 << graalHotSpotVMConfig.logMinObjAlignment(),
|
||||||
graalHotSpotVMConfig.codeSegmentSize,
|
graalHotSpotVMConfig.codeSegmentSize,
|
||||||
gc
|
gc
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -70,8 +70,6 @@ public class GraalHotSpotVMConfig extends GraalHotSpotVMConfigBase {
|
|||||||
public final boolean enableContended = getFlag("EnableContended", Boolean.class);
|
public final boolean enableContended = getFlag("EnableContended", Boolean.class);
|
||||||
public final boolean restrictContended = getFlag("RestrictContended", Boolean.class);
|
public final boolean restrictContended = getFlag("RestrictContended", Boolean.class);
|
||||||
public final int contendedPaddingWidth = getFlag("ContendedPaddingWidth", Integer.class);
|
public final int contendedPaddingWidth = getFlag("ContendedPaddingWidth", Integer.class);
|
||||||
public final int fieldsAllocationStyle = getFlag("FieldsAllocationStyle", Integer.class);
|
|
||||||
public final boolean compactFields = getFlag("CompactFields", Boolean.class);
|
|
||||||
public final boolean verifyOops = getFlag("VerifyOops", Boolean.class);
|
public final boolean verifyOops = getFlag("VerifyOops", Boolean.class);
|
||||||
public final boolean ciTime = getFlag("CITime", Boolean.class);
|
public final boolean ciTime = getFlag("CITime", Boolean.class);
|
||||||
public final boolean ciTimeEach = getFlag("CITimeEach", Boolean.class);
|
public final boolean ciTimeEach = getFlag("CITimeEach", Boolean.class);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -47,16 +47,6 @@ public class FieldLayoutFlags {
|
|||||||
static final String[][] flags = {
|
static final String[][] flags = {
|
||||||
// Dump time // Run time
|
// Dump time // Run time
|
||||||
{}, {}, // All defaults. Ensure that the test itself is correct.
|
{}, {}, // All defaults. Ensure that the test itself is correct.
|
||||||
{"-XX:FieldsAllocationStyle=0"}, {"-XX:FieldsAllocationStyle=1"},
|
|
||||||
{"-XX:FieldsAllocationStyle=0"}, {"-XX:FieldsAllocationStyle=2"},
|
|
||||||
{"-XX:FieldsAllocationStyle=1"}, {"-XX:FieldsAllocationStyle=0"},
|
|
||||||
{"-XX:FieldsAllocationStyle=1"}, {"-XX:FieldsAllocationStyle=2"},
|
|
||||||
{"-XX:FieldsAllocationStyle=2"}, {"-XX:FieldsAllocationStyle=0"},
|
|
||||||
{"-XX:FieldsAllocationStyle=2"}, {"-XX:FieldsAllocationStyle=1"},
|
|
||||||
|
|
||||||
{"-XX:+CompactFields"}, {"-XX:-CompactFields"},
|
|
||||||
{"-XX:-CompactFields"}, {"-XX:+CompactFields"},
|
|
||||||
|
|
||||||
{"-XX:+EnableContended"}, {"-XX:-EnableContended"},
|
{"-XX:+EnableContended"}, {"-XX:-EnableContended"},
|
||||||
{"-XX:-EnableContended"}, {"-XX:+EnableContended"},
|
{"-XX:-EnableContended"}, {"-XX:+EnableContended"},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user