hg: jdk8/tl/jdk: 7027061: Testcase failure: java/util/Locale/Bug6989440.java - java.util.ConcurrentModificationException

2011-10-12 Thread naoto . sato
Changeset: 829c3a8d23fa Author:naoto Date: 2011-10-12 12:12 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/829c3a8d23fa 7027061: Testcase failure: java/util/Locale/Bug6989440.java - java.util.ConcurrentModificationException Reviewed-by: dholmes, chegar ! src/share/classes

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-11 Thread Chris Hegarty
David, I'm not sure where we can file bugs on jtreg, probably have to wait for Jon to come back on line and drop him a mail. This is even worse that I originally though. Any thread that throws an unchecked exception followed by another thread starting a thread ( or invoking any operation on

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-11 Thread Kumar Srinivasan
You can file it as follows: Product: jct_tools Category: jct_tools Subcategory: regtest and for a good measure add jon to the interest list. Kumar David, I'm not sure where we can file bugs on jtreg, probably have to wait for Jon to come back on line and drop him a mail. This is even

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-10 Thread Chris Hegarty
Thumbs up from me too. -Chris. On 10/10/2011 05:44, David Holmes wrote: On 10/10/2011 1:35 PM, Naoto Sato wrote: Hi David, Thank you for your review. availableJRELocales is already declared with volatile keyword in the current source, so no change is involved. Sorry - my mistake. I misread

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-10 Thread Chris Hegarty
Naoto, Forgot to add, you can probably just push the changes for the test along with your source changes. I modified it a little since last review. Reproduces one in about every ten times on one of our Dual core Linux x64 boxes. : hg diff Bug6989440.java diff -r 1e89a13d9d8f

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-10 Thread Alan Bateman
Chris Hegarty wrote: Naoto, Forgot to add, you can probably just push the changes for the test along with your source changes. I modified it a little since last review. Reproduces one in about every ten times on one of our Dual core Linux x64 boxes. Is it the CME that duplicates for you? I'm

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-10 Thread Chris Hegarty
On 10/10/2011 15:52, Alan Bateman wrote: Chris Hegarty wrote: Naoto, Forgot to add, you can probably just push the changes for the test along with your source changes. I modified it a little since last review. Reproduces one in about every ten times on one of our Dual core Linux x64 boxes. Is

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-10 Thread Naoto Sato
Thanks, Chris. Will do it after confirming all's well with the JPRT (currently it's down). Naoto On 10/10/11 7:27 AM, Chris Hegarty wrote: Naoto, Forgot to add, you can probably just push the changes for the test along with your source changes. I modified it a little since last review.

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-10 Thread David Holmes
So the jtreg uncaughtException code is doing a join() on the target Thread while holding the monitor lock of the ThreadGroup - ouch! Where do we file jtreg bugs? David On 11/10/2011 1:44 AM, Chris Hegarty wrote: On 10/10/2011 15:52, Alan Bateman wrote: Chris Hegarty wrote: Naoto, Forgot

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-09 Thread David Holmes
Hi Naoto, This looks okay to me, but is missing the change to make availableJRELocales volatile (which is needed to ensure safe publication) David On 8/10/2011 4:40 AM, Naoto Sato wrote: OK here is the proposed fix (including David's suggestion for using putIfAbsent). Can anyone please

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-09 Thread Naoto Sato
Hi David, Thank you for your review. availableJRELocales is already declared with volatile keyword in the current source, so no change is involved. Naoto On 10/9/11 6:22 PM, David Holmes wrote: Hi Naoto, This looks okay to me, but is missing the change to make availableJRELocales volatile

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-09 Thread David Holmes
On 10/10/2011 1:35 PM, Naoto Sato wrote: Hi David, Thank you for your review. availableJRELocales is already declared with volatile keyword in the current source, so no change is involved. Sorry - my mistake. I misread something Chris posted earlier. Cheers, David Naoto On 10/9/11 6:22

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-07 Thread Naoto Sato
OK here is the proposed fix (including David's suggestion for using putIfAbsent). Can anyone please review this? --- a/src/share/classes/sun/util/LocaleServiceProviderPool.java +++ b/src/share/classes/sun/util/LocaleServiceProviderPool.java @@ -40,6 +40,7 @@ import java.util.ServiceLoader;

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-06 Thread Chris Hegarty
David, Expanding (more threads and more runs) and running this test on one of our dual core Linux x64 boxes, reproduce the CME about one in every ten runs. I instrumented where the CME was being created to determine the expected/actual modcount: final void checkForComodification()

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-06 Thread David Holmes
Hi Chris, Thanks. Here's the bug: private ListLocale getJRELocales() { if (availableJRELocales == null) { synchronized (LocaleServiceProviderPool.class) { if (availableJRELocales == null) { Locale[] allLocales =

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-06 Thread Chris Hegarty
D'oh! I should have seen this. Thanks David -Chris David Holmes david.hol...@oracle.com wrote: Hi Chris, Thanks. Here's the bug: private ListLocale getJRELocales() { if (availableJRELocales == null) { synchronized (LocaleServiceProviderPool.class) {

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-06 Thread Naoto Sato
Hi David, Thank you for the quick look and the fix! Naoto On 10/6/11 10:09 AM, David Holmes wrote: Hi Chris, Thanks. Here's the bug: private ListLocale getJRELocales() { if (availableJRELocales == null) { synchronized (LocaleServiceProviderPool.class) { if (availableJRELocales == null) {

Re: testcase failure java/util/Locale/Bug6989440.java

2011-10-05 Thread Chris Hegarty
Alan, David, I noticed CR 7027061 was closed as 'not a defect'. Should I file a new CR to have the jtreg test fixed (join on all created threads)? The test will still exercise what it is supposed to, and the ConcurrentModificationException issue can be investigated at another time. This way

Re: testcase failure java/util/Locale/Bug6989440.java

2011-10-05 Thread Naoto Sato
Hi Chris, I appreciate it, and will fix the test case. Naoto On 10/5/11 7:07 AM, Chris Hegarty wrote: Alan, David, I noticed CR 7027061 was closed as 'not a defect'. Should I file a new CR to have the jtreg test fixed (join on all created threads)? The test will still exercise what it is

Re: testcase failure java/util/Locale/Bug6989440.java

2011-10-05 Thread Chris Hegarty
Alan, Naoto, David I filed CR 7098100: java/util/Locale/Bug6989440.java fails intermittently. If you're ok with it please review the patch (below) and I can push it to the tl repo. Job done! : hg diff test/java/util/Locale/Bug6989440.java diff -r 24741fe639a8

Re: testcase failure java/util/Locale/Bug6989440.java

2011-10-05 Thread Naoto Sato
Looks good to me. Thanks! Naoto On 10/5/11 8:42 AM, Chris Hegarty wrote: Alan, Naoto, David I filed CR 7098100: java/util/Locale/Bug6989440.java fails intermittently. If you're ok with it please review the patch (below) and I can push it to the tl repo. Job done! : hg diff

Re: testcase failure java/util/Locale/Bug6989440.java

2011-10-05 Thread Alan Bateman
Chris Hegarty wrote: Alan, Naoto, David I filed CR 7098100: java/util/Locale/Bug6989440.java fails intermittently. If you're ok with it please review the patch (below) and I can push it to the tl repo. Job done! I assume there is also some underlying issue in the Locale code and this might

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-05 Thread Naoto Sato
I will look into this. Reopened the original CR. Naoto On 10/5/11 9:58 AM, Alan Bateman wrote: Chris Hegarty wrote: Alan, Naoto, David I filed CR 7098100: java/util/Locale/Bug6989440.java fails intermittently. If you're ok with it please review the patch (below) and I can push it to the tl

Re: testcase failure java/util/Locale/Bug6989440.java

2011-10-05 Thread David Holmes
On 6/10/2011 2:58 AM, Alan Bateman wrote: Chris Hegarty wrote: Alan, Naoto, David I filed CR 7098100: java/util/Locale/Bug6989440.java fails intermittently. If you're ok with it please review the patch (below) and I can push it to the tl repo. Job done! I assume there is also some underlying

Re: i18n dev testcase failure java/util/Locale/Bug6989440.java

2011-10-05 Thread David Holmes
This might not be related to the CME problem, but here: public static LocaleServiceProviderPool getPool(Class? extends LocaleServiceProvider providerClass) { LocaleServiceProviderPool pool = poolOfPools.get(providerClass); if (pool == null) {