Skip to content

Commit 98a93e1

Browse files
committed
8348800: Many serviceability/sa tests failing after JDK-8348239
Reviewed-by: shade, kevinw, lmesnik
1 parent 5e81fa6 commit 98a93e1

File tree

1 file changed

+5
-1
lines changed
  • src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime

1 file changed

+5
-1
lines changed

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/Threads.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ private static synchronized void initialize(TypeDataBase db) {
155155
virtualConstructor.addMapping("NotificationThread", NotificationThread.class);
156156
virtualConstructor.addMapping("StringDedupThread", StringDedupThread.class);
157157
virtualConstructor.addMapping("AttachListenerThread", AttachListenerThread.class);
158-
virtualConstructor.addMapping("DeoptimizeObjectsALotThread", DeoptimizeObjectsALotThread.class);
158+
159+
/* Only add DeoptimizeObjectsALotThread if it is actually present in the type database. */
160+
if (db.lookupType("DeoptimizeObjectsALotThread", false) != null) {
161+
virtualConstructor.addMapping("DeoptimizeObjectsALotThread", DeoptimizeObjectsALotThread.class);
162+
}
159163
}
160164

161165
public Threads() {

0 commit comments

Comments
 (0)