[crac] RFR: Propagating CRaC event to JVMTI agents [v3]
Radim Vansa
rvansa at openjdk.org
Wed Nov 22 22:12:36 UTC 2023
On Tue, 21 Nov 2023 19:42:59 GMT, Roman Marchenko <rmarchenko at openjdk.org> wrote:
>> This change implements propagation of CRaC events to JVMTI.
>>
>> - New JVMTI extension events are introduced - `EXT_EVENT_CRAC_BEFORE_CHECKPOINT` and `EXT_EVENT_CRAC_AFTER_RESTORE`.
>> - JVMTI agents should subscribe/unsubscribe to the events using `SetExtensionEventCallback` JVMTI method.
>> - Setting/unsetting a callback will enable/disable sending an appropriate event to an agent, i.e. there is no need to additionally call `SetEventNotificationMode` method by an agent.
>> - See `test/jdk/jdk/crac/jvmtiEvents/libCracJvmtiAgent.c` for an example of CRaC-ready JVMTI agent
>
> Roman Marchenko has updated the pull request incrementally with one additional commit since the last revision:
>
> Fixed test
Looks good, and kudos for the test! How is it built (into shared library I suppose?) I don't see any modifications in Makefiles...
-------------
Marked as reviewed by rvansa (Committer).
PR Review: https://git.openjdk.org/crac/pull/143#pullrequestreview-1745449197
More information about the crac-dev
mailing list