RFR: 8335836: serviceability/jvmti/StartPhase/AllowedFunctions/AllowedFunctions.java fails with unexpected exit code: 112 [v4]
Chris Plummer
cjplummer at openjdk.org
Sat Aug 3 04:19:31 UTC 2024
On Sat, 3 Aug 2024 03:22:06 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> The test has been fixed to:
>> - add a guard against JVMTI_ERROR_WRONG_PHASE
>> - replace `exit(err)` with `abort()` in the `check_jvmti_error()`
>>
>> The JVMTI `VMDeath` event is enabled and a `RawMonitor` is introduced to serialize `ClassPrepare` and `VMDeath` events, and so, to prevent JVMTI_ERROR_WRONG_PHASE in the `ClassPrepare` events.
>>
>> Testing:
>> - run the test AllowedFunctions.java locally
>> - TBD: submit a mach5 run for fixed test
>
> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>
> tweeked comment in ClassPrepare event callback
test/hotspot/jtreg/serviceability/jvmti/StartPhase/AllowedFunctions/libAllowedFunctions.c line 363:
> 361: check_jvmti_error(jvmti, "ClassPrepare event: Failed in RawMonitorEnter", err);
> 362:
> 363: if (is_vm_dead == JNI_TRUE) {
Suggestion:
if (is_vm_dead) {
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20397#discussion_r1702452004
More information about the serviceability-dev
mailing list