changeset 57050:40988e0ec912 amber-demo-II

Automatic merge with records-and-sealed
author mcimadamore
date Tue, 27 Aug 2019 20:25:43 +0000
parents 40a13f652205 1790da960d59
children 033fe61e28ad
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/prims/jvm.cpp	Mon Aug 26 20:40:45 2019 +0000
+++ b/src/hotspot/share/prims/jvm.cpp	Tue Aug 27 20:25:43 2019 +0000
@@ -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);