7107014: sun.jvm.hotspot.HSDB.FindObjectByTypeCleanupThunk.showConsole.attach infinite loop
authorvtewari
Wed, 09 Nov 2016 13:38:52 +0530
changeset 42548 5ba95648287f
parent 42547 815cfbe4878b
child 42550 fd77566dddd3
7107014: sun.jvm.hotspot.HSDB.FindObjectByTypeCleanupThunk.showConsole.attach infinite loop Summary: Avoid infinite loop in sun.jvm.hotspot.HSDB.FindObjectByTypeCleanupThunk.showConsole.attach Reviewed-by: rehn, dsamersoff Contributed-by: Sharath Ballal <sharath.ballal@oracle.com>
hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/HSDB.java
--- a/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/HSDB.java	Wed Nov 09 09:30:27 2016 +0300
+++ b/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/HSDB.java	Wed Nov 09 13:38:52 2016 +0530
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1474,7 +1474,7 @@
                   return attached;
               }
               public void attach(String pid) {
-                  attach(pid);
+                  HSDB.this.attach(pid);
               }
               public void attach(String java, String core) {
               }