< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects003/referringObjects003.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2007, 2021, 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
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

@@ -165,15 +165,14 @@
          checkThreadGroupReferrersCount(threadGroups, expectedCount);
  
          List<ObjectReference> threads = HeapwalkingDebugger.filterObjectReferrence(threadsToFilter, HeapwalkingDebugger
                  .getObjectReferences("java.lang.Thread", vm));
  
-         expectedCount = 2 + HeapwalkingDebuggee.includedIntoReferrersCountTypes.size();
+         expectedCount = 1 + HeapwalkingDebuggee.includedIntoReferrersCountTypes.size();
  
-         // 1 referrer is debugee object + 1 referrer is thread group
-         // + 'includedIntoReferrersCountTypes.size()' referrers was additionally
-         // created
+         // 1 referrer is debugee object + 'includedIntoReferrersCountTypes.size()' referrers
+         // was additionally created (there is no longer a reference from ThreadGroup)
          checkThreadReferrersCount(threads, expectedCount);
  
          pipe.println(referringObjects003a.COMMAND_STOP_THREADS);
  
          if (!isDebuggeeReady())
< prev index next >