changeset 57048:1790da960d59 records-and-sealed

relaxing an assertion on record components length at jvm::JVM_GetRecordComponentNames
author vromero
date Tue, 27 Aug 2019 16:20:06 -0400
parents 620128930137
children 7cf9d1e04cb1 40988e0ec912
files src/hotspot/share/prims/jvm.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/prims/jvm.cpp	Mon Aug 26 16:38:09 2019 -0400
+++ b/src/hotspot/share/prims/jvm.cpp	Tue Aug 27 16:20:06 2019 -0400
@@ -1676,7 +1676,7 @@
       JvmtiVMObjectAllocEventCollector oam;
       constantPoolHandle cp(THREAD, ik->constants());
       int length = components->length();
-      assert(length != 0, "unexpected record_components length");
+      assert(length >= 0, "unexpected record_components length");
       objArrayOop name_strings = oopFactory::new_objArray(SystemDictionary::String_klass(),
                                                           length, CHECK_NULL);
       objArrayHandle name_strings_h (THREAD, name_strings);