changeset 59093:fd70d5109dff lworld

Fix field layout option name
author fparain
date Mon, 24 Feb 2020 16:08:04 -0500
parents 8741b7e16446
children 580f6bc5437f
files src/hotspot/share/classfile/classFileParser.cpp src/hotspot/share/runtime/globals.hpp
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/classfile/classFileParser.cpp	Mon Feb 24 15:24:25 2020 +0000
+++ b/src/hotspot/share/classfile/classFileParser.cpp	Mon Feb 24 16:08:04 2020 -0500
@@ -6230,7 +6230,7 @@
 
   if (is_value_type()) {
     ValueKlass* vk = ValueKlass::cast(ik);
-    if (UseNewLayout) {
+    if (UseNewFieldLayout) {
       vk->set_alignment(_alignment);
       vk->set_first_field_offset(_first_field_offset);
       vk->set_exact_size_in_bytes(_exact_size_in_bytes);
@@ -6937,7 +6937,7 @@
   }
 
   _field_info = new FieldLayoutInfo();
-  if (UseNewLayout) {
+  if (UseNewFieldLayout) {
     FieldLayoutBuilder lb(class_name(), super_klass(), _cp, _fields,
         _parsed_annotations->is_contended(), is_value_type(),
         loader_data(), _protection_domain, _field_info);
--- a/src/hotspot/share/runtime/globals.hpp	Mon Feb 24 15:24:25 2020 +0000
+++ b/src/hotspot/share/runtime/globals.hpp	Mon Feb 24 16:08:04 2020 -0500
@@ -2527,7 +2527,7 @@
                 "Print layout of inline classes and classes with "          \
                 "flattenable fields")                                       \
                                                                             \
-  product(bool, UseNewLayout, true,                                         \
+  product(bool, UseNewFieldLayout, true,                                    \
                 "(Deprecated) Use new algorithm to compute field layouts")  \
                                                                             \
   product(bool, UseEmptySlotsInSupers, true,                                \