File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,11 @@ private static synchronized void initialize(TypeDataBase db) {
155
155
virtualConstructor .addMapping ("NotificationThread" , NotificationThread .class );
156
156
virtualConstructor .addMapping ("StringDedupThread" , StringDedupThread .class );
157
157
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
+ }
159
163
}
160
164
161
165
public Threads () {
You can’t perform that action at this time.
0 commit comments