RFR: 8269770: nsk tests should start IOPipe channel before launch debuggee - Debugee.prepareDebugee

Alex Menkov amenkov at openjdk.java.net
Thu Jul 1 23:28:16 UTC 2021


The change fixes several hundreds tests which launch debugee by using uses Debugee.prepareDebugee() method or use 
debugee = Binder.bindToDebugee(...);
IOPipe pipe = debugee.createIOPipe();
logic.
Debugee.prepareDebugee() and Binder.bindToDebugee() launch debuggee by using CommandLineLaunch JDI connector with suspend=="true" argument, so they return debuggee suspended before the main class is loaded.
The fix starts IOPipe listening before debuggee VM is resumed.

Simplified isPackagePrivate/accipp001.java test to use Debugee.prepareDebugee() - it does exactly the same as Debugee.prepareDebugee() does (the only difference is using deprecated IOPipe ctor instead of Debugee.createIOPipe())

-------------

Commit messages:
 - DebugeeProcess.createIOPipe starts listening

Changes: https://git.openjdk.java.net/jdk/pull/4659/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4659&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8269770
  Stats: 31 lines in 3 files changed: 4 ins; 19 del; 8 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4659.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4659/head:pull/4659

PR: https://git.openjdk.java.net/jdk/pull/4659


More information about the serviceability-dev mailing list