RFR: 8256811: Delayed/missed jdwp class unloading events [v11]

Zhengyu Gu zgu at openjdk.org
Mon Jul 18 23:12:08 UTC 2022


On Thu, 30 Jun 2022 19:30:54 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> Zhengyu Gu has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 27 additional commits since the last revision:
>> 
>>  - Merge branch 'master' into JDK-8256811-jdi-missing-class-unloading-event
>>  - Moved TestClassUnloadEvents.java to new location
>>  - Fix test
>>  - Use Shenandoah GC for debuggee for deterministic
>>  - debug test
>>  - Adding log for debugging test failure on Windows
>>  - Removed HiddenClass test from Problem.txt and cleanup test
>>  - Renamed eventHandler_synthesizeUnloadEvent
>>  - v5
>>  - Improve naming and cleanup
>>  - ... and 17 more: https://git.openjdk.org/jdk/compare/b5c7df58...a07b3737
>
> src/hotspot/share/prims/jvmtiTagMap.cpp line 1144:
> 
>> 1142:                                    heap_object_callback,
>> 1143:                                    user_data);
>> 1144:   Arena dead_object_arena(mtInternal);
> 
> This should be mtServiceability, not Internal.  This is an unusual use of Arena in the JVM. Does it get cleaned up completely when it goes out of scope?

Changed mtInternal to mtServiceability.
Yes,  Arena's destructor calls `destruct_contents()`

-------------

PR: https://git.openjdk.org/jdk/pull/9168


More information about the serviceability-dev mailing list