<Swing Dev> [12] JDK-8213516: jck test api/javax_accessibility/AccessibleState/fields.html fails intermittent
Krishna Addepalli
krishna.addepalli at oracle.com
Wed Dec 19 10:24:32 UTC 2018
Hi Shashi,
Is it possible to verify that multiple threads are calling "loadResourceBundle" function?
Also, if the issue doesn't happen when run with other VM mode, and only in same VM mode, could it be a test case cleanup problem?
Thanks,
Krishna
From: Shashidhara Veerabhadraiah
Sent: Wednesday, December 19, 2018 11:55 AM
To: swing-dev at openjdk.java.net; Sergey Bylokhov <sergey.bylokhov at oracle.com>; Philip Race <philip.race at oracle.com>; Dmitry Bessonov <dmitry.bessonov at oracle.com>
Subject: <Swing Dev> [12] JDK-8213516: jck test api/javax_accessibility/AccessibleState/fields.html fails intermittent
Hi All, Please review a fix for the JDK 12 for the below bug:
Bug: https://bugs.openjdk.java.net/browse/JDK-8213516
Webrev: http://cr.openjdk.java.net/~sveerabhadra/8213516/webrev.00/
This issue is happening intermittently and am not able to reproduce it on my local machine(corner case). As the bug reports issue is happening with jtreg running multiple tests on same VM mode. Upon analysis of the "AccessibleState" class and it's parent "AccessibleBundle" I think there may be a chance that class variable(static variable: table) present in AccessibleBundle can get into a corrupted state when multiple AccessibleState class variables are calling the method of parent class (loadResourceBundle() thro' toDisplayString() public functions) as it tries to load the same resource file into the same table(static variable) possibly from different threads(because of jtreg execution of multiple tests of the same bundle). Hence added a synchronized keyword to the function so that execution goes sequentially while loading the table(static hashtable). Since the problem is intermittent and not reproducible on local machine, test file is not required I think. Please suggest if you can find a different solution for this problem.
Thanks and regards,
Shashi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20181219/55012764/attachment.html>
More information about the swing-dev
mailing list