On Wed, 15 Mar 2023 21:36:31 GMT, Sergey Bylokhov <[email protected]> wrote:
>> The issue is intermittent and was not able to reproduce it. Though through
>> code analysis and bug reported logs, the issue seems to be in COM thread of
>> `FilesLoader` class in `BasicDirectoryModel` file. Looks like there are
>> certain places where the `filecache` variable isn't thread-safe, and this
>> fix address the issue.
>> Mach5 test runs are fine, no regressions were found.
>
> src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java
> line 198:
>
>> 196:
>> 197: public int getSize() {
>> 198: return fileCache.size();
>
> The fileCache is a Vector, and the methods of that object are already
> synchronized on "this"
@mrserb U had mentioned about reproducing the bug 5 out of 2000 times in jbs,
any chance u remember where did u run? On physical/OCI Oracle linux CI system
or any other?
-------------
PR: https://git.openjdk.org/jdk/pull/13012