Skip to content

Commit 05745e3

Browse files
Thomas Schatzlthurka
andcommitted
8319548: Unexpected internal name for Filler array klass causes error in VisualVM
Co-authored-by: Tomáš Hůrka <[email protected]> Reviewed-by: ayang, dholmes
1 parent e8768ae commit 05745e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hotspot/share/memory/universe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ void Universe::genesis(TRAPS) {
338338
// Initialization of the fillerArrayKlass must come before regular
339339
// int-TypeArrayKlass so that the int-Array mirror points to the
340340
// int-TypeArrayKlass.
341-
_fillerArrayKlassObj = TypeArrayKlass::create_klass(T_INT, "Ljdk/internal/vm/FillerArray;", CHECK);
341+
_fillerArrayKlassObj = TypeArrayKlass::create_klass(T_INT, "[Ljdk/internal/vm/FillerElement;", CHECK);
342342
for (int i = T_BOOLEAN; i < T_LONG+1; i++) {
343343
_typeArrayKlassObjs[i] = TypeArrayKlass::create_klass((BasicType)i, CHECK);
344344
}

test/hotspot/jtreg/gc/TestFillerObjectInstantiation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ private static void testInstantiationFails(String classname) throws Exception {
4545

4646
public static void main(String[] args) throws Exception {
4747
testInstantiationFails("jdk.internal.vm.FillerObject");
48-
testInstantiationFails("jdk.internal.vm.FillerArray");
48+
testInstantiationFails("jdk.internal.vm.FillerElement");
4949
}
5050
}

0 commit comments

Comments
 (0)