changeset 58689:72e605a88500

8232030: HelloDynamic.java fails with latest Graal Summary: Include the dynamic dumping condition when setting up the merged_ordering array in merge_in_new_methods() of defaultMethods.cpp. Reviewed-by: iklam, coleenp
author ccheung
date Fri, 18 Oct 2019 09:17:38 -0700
parents 0279391875bf
children 294fe0fef773
files src/hotspot/share/classfile/defaultMethods.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/classfile/defaultMethods.cpp	Fri Oct 18 11:36:35 2019 -0400
+++ b/src/hotspot/share/classfile/defaultMethods.cpp	Fri Oct 18 09:17:38 2019 -0700
@@ -1012,7 +1012,7 @@
       klass->class_loader_data(), new_size, NULL, CHECK);
 
   // original_ordering might be empty if this class has no methods of its own
-  if (JvmtiExport::can_maintain_original_method_order() || DumpSharedSpaces) {
+  if (JvmtiExport::can_maintain_original_method_order() || Arguments::is_dumping_archive()) {
     merged_ordering = MetadataFactory::new_array<int>(
         klass->class_loader_data(), new_size, CHECK);
   }