RFR: 8289220: [Shenandoah] TestAllocObjectArrays fails intermittently

2023-05-30 Thread SUN Guoyun
command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" TEST=gc/TestAllocHumongousFragment.java error info: Caused by: java.lang.NullPointerException: Cannot invoke "sun.util.locale.BaseLocale.getVariant()" because "base" is null at java.base/java.util.Locale.forLanguageTag(Locale.java:1802

Re: RFR: 8289220: [Shenandoah] TestAllocObjectArrays fails intermittently

2023-05-30 Thread SUN Guoyun
On Tue, 30 May 2023 08:49:35 GMT, Alan Bateman wrote: >> command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" >> TEST=gc/TestAllocHumongousFragment.java >> error info: >> >> Caused by: java.lang.NullPointerException: Cannot invoke >> "sun.util.locale.BaseLocale.getVariant()" because "b

Re: RFR: 8289220: [Shenandoah] TestAllocObjectArrays fails intermittently

2023-05-31 Thread SUN Guoyun
On Tue, 30 May 2023 08:31:08 GMT, SUN Guoyun wrote: > command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" > TEST=gc/TestAllocHumongousFragment.java > error info: > > Caused by: java.lang.NullPointerException: Cannot invoke > "sun.util.locale.BaseLocal

Re: RFR: 8289220: [Shenandoah] TestAllocObjectArrays fails intermittently [v2]

2023-05-31 Thread SUN Guoyun
a.base/java.util.Locale.forLanguageTag(Locale.java:1874) > > in LocaleObjectCache.java:64 > >62 if (key == null || newVal == null) { > >63 // subclass must return non-null key/value object >

Re: RFR: 8289220: [Shenandoah] TestAllocObjectArrays fails intermittently [v3]

2023-06-01 Thread SUN Guoyun
a.base/java.util.Locale.forLanguageTag(Locale.java:1874) > > in LocaleObjectCache.java:64 > >62 if (key == null || newVal == null) { > >63 // subclass must return non-null key/value object >

Re: RFR: 8289220: [Shenandoah] TestAllocObjectArrays fails intermittently [v3]

2023-06-01 Thread SUN Guoyun
On Thu, 1 Jun 2023 08:58:23 GMT, SUN Guoyun wrote: >> command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" >> TEST=gc/TestAllocHumongousFragment.java >> error info: >> >> Caused by: java.lang.NullPointerException: Cannot invoke >> &qu

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v3]

2023-06-01 Thread SUN Guoyun
On Thu, 1 Jun 2023 08:58:23 GMT, SUN Guoyun wrote: >> command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" >> TEST=gc/TestAllocHumongousFragment.java >> error info: >> >> Caused by: java.lang.NullPointerException: Cannot invoke >> &qu

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v3]

2023-06-01 Thread SUN Guoyun
On Thu, 1 Jun 2023 09:03:23 GMT, SUN Guoyun wrote: >> SUN Guoyun has refreshed the contents of this pull request, and previous >> commits have been removed. The incremental views will show differences >> compared to the previous content of the PR. The pull request contains

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v3]

2023-06-01 Thread SUN Guoyun
On Thu, 1 Jun 2023 08:58:23 GMT, SUN Guoyun wrote: >> command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" >> TEST=gc/TestAllocHumongousFragment.java >> error info: >> >> Caused by: java.lang.NullPointerException: Cannot invoke >> &qu

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v3]

2023-06-05 Thread SUN Guoyun
On Thu, 1 Jun 2023 08:58:23 GMT, SUN Guoyun wrote: >> command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" >> TEST=gc/TestAllocHumongousFragment.java >> error info: >> >> Caused by: java.lang.NullPointerException: Cannot invoke >> &qu

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v3]

2023-06-05 Thread SUN Guoyun
On Mon, 5 Jun 2023 21:48:23 GMT, Naoto Sato wrote: >> src/java.base/share/classes/sun/util/locale/BaseLocale.java line 369: >> >>> 367: BaseLocale l = key.holder; >>> 368: BaseLocale locale = new BaseLocale(l.getLanguage(), >>> l.getScript(), l.getRegion(), l.getVariant(

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v4]

2023-06-05 Thread SUN Guoyun
a.base/java.util.Locale.forLanguageTag(Locale.java:1874) > > in LocaleObjectCache.java:64 > >62 if (key == null || newVal == null) { > >63 // subclass must return non-null key/value object >

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v5]

2023-06-06 Thread SUN Guoyun
a.base/java.util.Locale.forLanguageTag(Locale.java:1874) > > in LocaleObjectCache.java:64 > >62 if (key == null || newVal == null) { > >63 // subclass must return non-null key/value object >

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v6]

2023-06-06 Thread SUN Guoyun
a.base/java.util.Locale.forLanguageTag(Locale.java:1874) > > in LocaleObjectCache.java:64 > >62 if (key == null || newVal == null) { > >63 // subclass must return non-null key/value object >

Re: RFR: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared [v3]

2023-06-06 Thread SUN Guoyun
On Tue, 6 Jun 2023 18:45:50 GMT, Erik Ă–sterlund wrote: >> For hotspot, when GC occurs, it causes all threads to run to the nearest >> safepoint and then freeze. Generally, safepoints are generated at branch >> jumps, method ends(ret instructions), loops instructions, and so on. >> Therefore, t

Withdrawn: 8289220: Locale.forLanguageTag throws NPE due to soft ref used in locale cache being cleared

2023-06-28 Thread SUN Guoyun
On Tue, 30 May 2023 08:31:08 GMT, SUN Guoyun wrote: > command: make test CONF=fastdebug JTREG="VM_OPTIONS=-Xcomp" > TEST=gc/TestAllocHumongousFragment.java > error info: > > Caused by: java.lang.NullPointerException: Cannot invoke > "sun.util.locale.BaseLocal