On Fri, 20 Nov 2026 06:30:00 GMT, Leonid Mesnik <[email protected]> wrote:

>> 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.

Ah there is a third process involved. So main test needs to not be flagless 
because the flags do get passed to LingeredApp startup. Got it. Thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33984#discussion_r4639407117

Reply via email to