RFR: 8286266: [macos] Voice over moving JTable column to be the first column JVM crashes

Artem Semenov asemenov at openjdk.java.net
Wed May 11 10:01:48 UTC 2022


On Tue, 10 May 2022 17:34:34 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

> Moving cache invalidation from the clearCache method to a createRowWithIndex method
> eliminating race condition that causes crash. Now clearCache just notifies that cache
> is invalid and should be regenerated next time it is being accessed.

src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/TableAccessibility.m line 141:

> 139:             [rowCache removeObjectForKey:key];
> 140:         }
> 141:         cacheValid = YES;

It seems to me that here it is necessary to release the cache.

    [rowCache release];
    rowCache = nil;

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

PR: https://git.openjdk.java.net/jdk/pull/8636



More information about the client-libs-dev mailing list