On Mon, 29 Apr 2024 13:22:00 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

> > Is it necessary to create dummy files here in this test? Can't we just 
> > create JFileChooser without creating dummy files and proceed with loader 
> > test? Because I tested without using dummy files and getting exception 
> > without JDK-8325179 fix.
> 
> Yes, it is necessary to create the dummy files. The background threads need 
> to run for a while; if there are no files, the threads may complete before 
> the snapshot is created.
> 
> Windows is usually less affected because all scanning on Windows is 
> serialized via the COM thread. Linux and macOS aren't stable enough without 
> the files. Even with the files, in one of the runs on Linux, there were only 
> 4 snapshots which contained the File Loader threads. That is 4 out of 20 
> snapshots taken. Without the files and with less files, the test could pass 
> where it should fail.

Yeah, my observation was w.r.t windows. Will have to test in Linux then.

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

PR Comment: https://git.openjdk.org/jdk/pull/18957#issuecomment-2082940642

Reply via email to