RFR: 8337331: crash: pinned virtual thread will lead to jvm crash when running with the javaagent option [v11]
Jaikiran Pai
jpai at openjdk.org
Thu Aug 8 02:26:32 UTC 2024
On Thu, 8 Aug 2024 02:21:39 GMT, Jiawei Tang <jwtang at openjdk.org> wrote:
>> I was inspired by [CODETOOLS-7901986](https://bugs.openjdk.org/browse/CODETOOLS-7901986). By adding `@build jdk.test.lib.Utils` all tests are passed. The GitHub Actions jobs are finished successfully, too. I hope I could get a final review now.
>
> Thank you for your help. I already made it by adding `@build jdk.test.lib.Utils`. Do I need to try to add `@clean jdk.test.lib.util.JavaAgentBuilder` and test again?
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 specific class). I felt the `@clean jdk.test.lib.util.JavaAgentBuilder` would be a better option since that `jdk.test.lib.util.JavaAgentBuilder` class is being used by the test definition.
Having said that, it's just a personal opinion and I would let hotspot and serviceability area members to decide what approach to use here.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20373#discussion_r1708446392
More information about the serviceability-dev
mailing list