On Fri, 20 Nov 2026 06:21:38 GMT, David Holmes <[email protected]> wrote:
>> Thank you for catching this. >> >> Indeed all these tests start 2 processes and one of them using >> createLimitedTestJavaProcessBuilder() intentionally. >> >> I am using special branch flagless to find the tests ignoring flags. >> https://github.com/lmesnik/jdk/commits/flagless/ >> >> And special problem list to track tests which ignore flags but don't need >> vm.flagless. It contains other SA similar tests, I added this test to the >> list. > > Not sure why being flagless would be wrong here? The main process is not > really what is being tested, so if the launched process is flagless by virtue > of the way it is created then why not make the overall test flagless? The "main" process for this test and most of SA tests is usually LingeredApp, started by app = LingeredApp.startApp(); and the second process which is started with ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder( "--add-modules=jdk.hotspot.agent", "--add-exports=jdk.hotspot.agent/sun.jvm.hotspot=ALL-UNNAMED", "--add-exports=jdk.hotspot.agent/sun.jvm.hotspot.debugger=ALL-UNNAMED", "--add-exports=jdk.hotspot.agent/sun.jvm.hotspot.runtime=ALL-UNNAMED", "--add-exports=jdk.hotspot.agent/sun.jvm.hotspot.types=ALL-UNNAMED", TestContinuationEntry.class.getName(), Long.toString(app.getPid())); is SA agent which attach to LingeredApp and check something. So the main tested debuggee process accept VM flags. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33984#discussion_r4639233530
