Re: RFR: 8287596: Reorg jdk.test.lib.util.ForceGC [v2]

2022-06-06 Thread Xue-Lei Andrew Fan
On Wed, 1 Jun 2022 21:09:15 GMT, Mandy Chung  wrote:

>> Xue-Lei Andrew Fan has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   back to wait 1 second
>
> No, it doesn't work.  You can build a fastdebug build with `configure 
> --enable-debug`.  I reproduce it on macOS.   If I restore to the previous 
> version without 8287384, the test passes.

Inspired by @mlchung (See https://github.com/openjdk/jdk/pull/9021), use less 
waiting time for  UnloadingTest and re-open this PR.

-

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


Re: RFR: 8287596: Reorg jdk.test.lib.util.ForceGC [v2]

2022-06-01 Thread Xue-Lei Andrew Fan
On Wed, 1 Jun 2022 21:07:16 GMT, Xue-Lei Andrew Fan  wrote:

>> This is a follow up update per comments in [JDK-8287384 
>> PR](https://github.com/openjdk/jdk/pull/8907).  The tier1 and tier2 test in 
>> open part looks good to me.  Please help to run Mach5 just case the closed 
>> test cases are impacted.
>
> Xue-Lei Andrew Fan has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   back to wait 1 second

My macOS (M1) and Linux (CentOS) may be too powerful to reproduce the failure.  
I tried to set the JTREG time out to 60 seconds, and the timeout issue could be 
reproduced.  In 
`test/jdk/java/lang/invoke/defineHiddenClass/UnloadingTest.java`, there are 6 
calls to the method `assertFalse(unloader.tryUnload())`.  Each call to 
tryUnload() takes at least 10 seconds.  So the 6 calls takes 60 seconds at 
least.   If I set the regression timeout value to 70 seconds, the test still 
can pass.   It implies the rest part other than tryUnload() is pretty fast.

It looks like a regression introduced with the update for 
[JDK-8287384](https://bugs.openjdk.java.net/browse/JDK-8287384).  I did not 
fine the cause yet.  I will have more checking tomorrow.

-

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


Re: RFR: 8287596: Reorg jdk.test.lib.util.ForceGC [v2]

2022-06-01 Thread Mandy Chung
On Wed, 1 Jun 2022 21:07:16 GMT, Xue-Lei Andrew Fan  wrote:

>> This is a follow up update per comments in [JDK-8287384 
>> PR](https://github.com/openjdk/jdk/pull/8907).  The tier1 and tier2 test in 
>> open part looks good to me.  Please help to run Mach5 just case the closed 
>> test cases are impacted.
>
> Xue-Lei Andrew Fan has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   back to wait 1 second

No, it doesn't work.  You can build a fastdebug build with `configure 
--enable-debug`.  I reproduce it on macOS.   If I restore to the previous 
version without 8287384, the test passes.

-

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


Re: RFR: 8287596: Reorg jdk.test.lib.util.ForceGC [v2]

2022-06-01 Thread Xue-Lei Andrew Fan
> This is a follow up update per comments in [JDK-8287384 
> PR](https://github.com/openjdk/jdk/pull/8907).  The tier1 and tier2 test in 
> open part looks good to me.  Please help to run Mach5 just case the closed 
> test cases are impacted.

Xue-Lei Andrew Fan has updated the pull request incrementally with one 
additional commit since the last revision:

  back to wait 1 second

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8979/files
  - new: https://git.openjdk.java.net/jdk/pull/8979/files/a1d91596..f3d9eb82

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk=8979=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk=8979=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8979.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8979/head:pull/8979

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