On Sun, 22 Nov 2026 19:04:35 GMT, Phil Race <[email protected]> wrote:

> I don't see any such failure of this test. It passes for me if I run it using 
> jtreg from a headful environment (without the fix of course).
> 
> What are you doing to trigger it ?

@prrace The failure is on the forked subprocess 
(`ProcessTools.executeTestJava`) on macOS. It reporduces for us on every macOS 
version we run (Sequoia, Sonoma, Tahoe), with andw ithout the async-profiler 
agent. The child write one line to stderr:


<ts> java[pid] ApplePersistenceIgnoreState: Existing state will not be touched. 
New state will be written to …/net.java.openjdk.java.savedState


The child exits 0 with empty stdout, but `stderrShouldBeEmpty()` then throws:

> That line is AppKit's saved-state/window-restoration message, so whether it 
> shows up depends on the host: it prints when the child runs as a restorable 
> GUI app in a windowserver session that doesn't have 
> ApplePersistenceIgnoreState set. A headful session where that default is 
> already YES (or that has no saved-state dir) won't show it — which likely 
> matches your environment. Our CI hosts are fresh and print it every run.

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

PR Comment: https://git.openjdk.org/jdk/pull/34007#issuecomment-7114571223

Reply via email to