JDK-8370732 : Use WhiteBox.getWhiteBox().fullGC() to provoking gc for nsk/jvmti tests
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 17,21,25,26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2025-10-28
  • Updated: 2025-12-03
  • Resolved: 2025-11-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b23Fixed
Related Reports
Relates :  
Description
Test vmTestbase/nsk/jvmti/AttachOnDemand/attach020/TestDescription.java intermittent fails. The test log snippet:

[15:39:9.535] Starting target application: /home/yansendao/git/jdk/build/linux-aarch64-server-release/images/jdk/bin/java -Dvmsqe.aod.AppId=2301757 -XX:+UsePerfData -ea -esa -XX:+EnableDynamicAgentLoading nsk.jvmti.AttachOnDemand.attach020.attach020Target -agentsNumber 1 -port 47595
TargetApp (stdout): [15:39:9.660] Sending signal 'ready'
TargetApp (stdout): [15:39:9.836] Waiting for agents connection
[15:39:9.837] Signal received: 'ready'
[15:39:9.838] Target VM id was identified: 2301930
[15:39:9.848] Trying to get VirtualMachine object
[15:39:10.203] VirtualMachine was created: sun.tools.attach.AttachProviderImpl@7f0d8124: 2301930
[15:39:10.203] Trying to load native agent: 'attach020Agent00' (agent options: '-agentName=NativeAgent-0')
[15:39:10.240] Agent was loaded
[15:39:10.240] Detaching from the VM 'sun.tools.attach.AttachProviderImpl@7f0d8124: 2301930'
[15:39:10.240] Sending signal: 'finish'
TargetApp (stdout): - attach020Agent00.cpp, 126: NativeAgent-0: auxiliary thread was started
TargetApp (stdout): - attach020Agent00.cpp, 187: NativeAgent-0: initialization was done
TargetApp (stdout): - aod.cpp, 199: Agent NativeAgent-0 is loaded
TargetApp (stdout): [15:39:10.239] Agent 'NativeAgent-0' was loaded
TargetApp (stdout): - attach020Agent00.cpp, 95: NativeAgent-0: auxiliary thread is running
TargetApp (stdout): [15:39:10.253] All expected agents connected
TargetApp (stdout): [15:39:10.253] Provoking garbage collection
TargetApp (stdout): - attach020Agent00.cpp, 59: NativeAgent-0: GC start event received
TargetApp (stdout): - attach020Agent00.cpp, 67: NativeAgent-0: GC finish event received
TargetApp (stdout): - aod.cpp, 253: Agent NativeAgent-0 finished (success: 1)
TargetApp (stdout): [15:39:10.430] Agent 'NativeAgent-0' finished execution (finishedSuccessfully: true)
TargetApp (stderr): Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
STDERR:
nsk.share.Failure: Target application finished with non-zero code 1
	at nsk.share.aod.AODTestRunner.runTest(AODTestRunner.java:153)
	at nsk.share.aod.AODTestRunner.main(AODTestRunner.java:184)
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk25u-dev/pull/52 Date: 2025-12-03 06:17:31 +0000
03-12-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk25u/pull/353 Date: 2025-11-01 02:14:00 +0000
25-11-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/2440 Date: 2025-11-01 02:14:03 +0000
01-11-2025

Changeset: 54fe5021 Branch: master Author: SendaoYan <syan@openjdk.org> Date: 2025-11-01 02:04:43 +0000 URL: https://git.openjdk.org/jdk/commit/54fe50210efe9ae6fad225b815cfdeb16c868115
01-11-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/28011 Date: 2025-10-28 06:22:14 +0000
28-10-2025