[crac] RFR: Propagating CRaC event to JVMTI agents [v4]

Roman Marchenko rmarchenko at openjdk.org
Fri Dec 22 14:23:37 UTC 2023


> 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 with a new target base due to a merge or a rebase. The pull request now contains four commits:

 - Fixed test
 - Adapted the test for simengine
 - Added test
 - Propagated CRaC events to JVMTI agents

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

Changes: https://git.openjdk.org/crac/pull/143/files
 Webrev: https://webrevs.openjdk.org/?repo=crac&pr=143&range=03
  Stats: 209 lines in 9 files changed: 207 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/crac/pull/143.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/143/head:pull/143

PR: https://git.openjdk.org/crac/pull/143


More information about the crac-dev mailing list