8319548: Unexpected internal name for Filler array klass causes error in VisualVM

Co-authored-by: Tomáš Hůrka <tomas.hurka@oracle.com>
Reviewed-by: ayang, dholmes
This commit is contained in:
Thomas Schatzl 2023-12-21 09:17:31 +00:00
parent e8768ae08d
commit 05745e3f1d
2 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ void Universe::genesis(TRAPS) {
// Initialization of the fillerArrayKlass must come before regular
// int-TypeArrayKlass so that the int-Array mirror points to the
// int-TypeArrayKlass.
_fillerArrayKlassObj = TypeArrayKlass::create_klass(T_INT, "Ljdk/internal/vm/FillerArray;", CHECK);
_fillerArrayKlassObj = TypeArrayKlass::create_klass(T_INT, "[Ljdk/internal/vm/FillerElement;", CHECK);
for (int i = T_BOOLEAN; i < T_LONG+1; i++) {
_typeArrayKlassObjs[i] = TypeArrayKlass::create_klass((BasicType)i, CHECK);
}

View File

@ -45,6 +45,6 @@ public class TestFillerObjectInstantiation {
public static void main(String[] args) throws Exception {
testInstantiationFails("jdk.internal.vm.FillerObject");
testInstantiationFails("jdk.internal.vm.FillerArray");
testInstantiationFails("jdk.internal.vm.FillerElement");
}
}