Re: RFR: 8332923: ObjectMonitorUsage.java failed with unexpected waiter_count

2024-05-27 Thread Jiawei Tang
On Sun, 26 May 2024 17:02:33 GMT, SendaoYan wrote: > > > That would mean it's not tested. I suspect the > > > java_lang_VirtualThread::is_instance checks will need to be changed to > > > test with is_a(vmClasses::BaseVirtualThread_klass()) to allow for the > > > alternative implementation. > >

RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option

2024-07-29 Thread Jiawei Tang
I add the testcase which can reproduce the crash. I hope that I could get some advise if the codes need changing. - Commit messages: - 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option Changes: https://git.openjdk.org/jdk/pull/2037

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v2]

2024-07-29 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the pr

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v2]

2024-07-29 Thread Jiawei Tang
On Mon, 29 Jul 2024 10:01:56 GMT, David Holmes wrote: >> Jiawei Tang 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 co

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v3]

2024-07-29 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: changes according to reviewers' advice ---

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v2]

2024-07-29 Thread Jiawei Tang
On Mon, 29 Jul 2024 09:53:40 GMT, Alan Bateman wrote: >> Jiawei Tang 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 co

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v2]

2024-07-29 Thread Jiawei Tang
On Mon, 29 Jul 2024 10:00:23 GMT, David Holmes wrote: >> Jiawei Tang 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 co

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v2]

2024-07-29 Thread Jiawei Tang
On Mon, 29 Jul 2024 10:40:17 GMT, Alan Bateman wrote: > Can we not just preload the problematic class so that it won't happen during > the transition? I think if a new agent are attached into the running progress, the vm may still crash? - PR Comment: https://git.openjdk.org/jdk/

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v4]

2024-07-29 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: refactor testcase and change the location of fix

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v3]

2024-07-29 Thread Jiawei Tang
On Mon, 29 Jul 2024 22:34:46 GMT, Serguei Spitsyn wrote: >> Jiawei Tang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> changes according to reviewers' advice > > src/hotspot/share/prims/jvmtiExp

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v5]

2024-07-31 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: remove useless codes and refactor the te

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v4]

2024-07-31 Thread Jiawei Tang
On Tue, 30 Jul 2024 11:20:48 GMT, Serguei Spitsyn wrote: >> Jiawei Tang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> refactor testcase and change the location of fix codes > > src/hotspot/share/p

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v6]

2024-08-01 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: change test condition for TestPinCaseWithCFL

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v7]

2024-08-01 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: rearrange to avoid long lines - Changes:

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v8]

2024-08-04 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: change the format of the testcase file - C

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v9]

2024-08-04 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: change the format of the testcase file - C

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v10]

2024-08-04 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: change the format of the testcase file - C

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]

2024-08-05 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: change the format of the testcase file - C

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v10]

2024-08-05 Thread Jiawei Tang
On Mon, 5 Aug 2024 03:58:18 GMT, Jiawei Tang wrote: >> I add the testcase which can reproduce the crash. I hope that I could get >> some advise if the codes need changing. > > Jiawei Tang has updated the pull request incrementally with one additional > commit si

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v12]

2024-08-05 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: fix the test condition to avoid NoClassDefFoun

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]

2024-08-05 Thread Jiawei Tang
On Tue, 6 Aug 2024 04:36:38 GMT, Jaikiran Pai wrote: > Hello @jia-wei-tang, I see that a `@build jdk.test.lib.util.JavaAgentBuilder` > was added in the latest update to the PR. Did that help solve the > NoClassDefFoundError you were running into when running those tests? I find > it surprising

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v13]

2024-08-05 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: fix the test condition to avoid NoClassDefFoun

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]

2024-08-06 Thread Jiawei Tang
On Tue, 6 Aug 2024 06:14:45 GMT, Jaikiran Pai wrote: >>> Hello @jia-wei-tang, I see that a `@build >>> jdk.test.lib.util.JavaAgentBuilder` was added in the latest update to the >>> PR. Did that help solve the NoClassDefFoundError you were running into when >>> running those tests? I find it su

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v14]

2024-08-07 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: fix the test condition to avoid NoClassDefFoun

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]

2024-08-07 Thread Jiawei Tang
On Wed, 7 Aug 2024 12:13:55 GMT, Jaikiran Pai wrote: >> I was able to reproduce this `NoClassDefFoundError` in this new test >> locally. I will take a look to see if I can figure out what's going on. > > I looked into this locally and this is a (known) bug in jtreg > https://bugs.openjdk.org/br

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]

2024-08-07 Thread Jiawei Tang
On Thu, 8 Aug 2024 02:18:34 GMT, Jiawei Tang wrote: >> I looked into this locally and this is a (known) bug in jtreg >> https://bugs.openjdk.org/browse/CODETOOLS-7902847. >> >> What's happening here is that the tests are launched using make tes

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v15]

2024-08-07 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: fix the test condition to avoid NoClassDefFoun

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]

2024-08-08 Thread Jiawei Tang
On Thu, 8 Aug 2024 04:43:19 GMT, David Holmes wrote: >> I am not too sure adding the `@build jdk.test.lib.Utils` is a good thing. >> This test definition nor the test code uses/references that class. So it's >> odd to be adding a build tag for an indirect dependent class (and only that >> spec

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]

2024-08-08 Thread Jiawei Tang
On Thu, 8 Aug 2024 08:39:34 GMT, Jiawei Tang wrote: >> Building a test library class not actually used by the test is certainly >> somewhat odd. I wasn't aware of the `@clean` workaround but I see a lot of >> vmTestbase tests use it, so please try the `@clean` a

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v16]

2024-08-08 Thread Jiawei Tang
> I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision: fix the test condition to avoid NoClassDefFoun

Re: RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]

2024-08-08 Thread Jiawei Tang
On Thu, 8 Aug 2024 09:11:29 GMT, Jaikiran Pai wrote: >> A stable way to reproduce the problem: run AgentWithVThread.java and then >> TestPinCaseWithCFLH.java. >> >> >> jtreg -v:error,fail -jdk:{JDKPATH} >> ./test/hotspot/jtreg/serviceability/jvmti/vthread/premain/AgentWithVThreadTest.java >>

Integrated: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option

2024-08-08 Thread Jiawei Tang
On Mon, 29 Jul 2024 09:36:47 GMT, Jiawei Tang wrote: > I add the testcase which can reproduce the crash. I hope that I could get > some advise if the codes need changing. This pull request has now been integrated. Changeset: 55c50970 Author:Jiawei Tang URL: https://git.openj