Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit

Permalink
8319548: Unexpected internal name for Filler array klass causes error…
Browse files Browse the repository at this point in the history
… in VisualVM

Backport-of: 05745e3f1d56f71d7647e81fa5933c9f4ed18430
  • Loading branch information
ChrisHegarty committed Apr 4, 2024
1 parent e2d6c5e commit aead789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/memory/universe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/gc/TestFillerObjectInstantiation.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ private static void testInstantiationFails(String classname) throws Exception {

public static void main(String[] args) throws Exception {
testInstantiationFails("jdk.internal.vm.FillerObject");
testInstantiationFails("jdk.internal.vm.FillerArray");
testInstantiationFails("jdk.internal.vm.FillerElement");
}
}

1 comment on commit aead789

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.