[crac] RFR: 8376959: [CRaC] Turn simengine into shared library [v9]

Radim Vansa rvansa at openjdk.org
Wed Feb 11 10:03:03 UTC 2026


> Right now `simengine` is implemented as an executable, invoked through `libcrexec` that implements the C/R API. Since the programmatic C/R API should be the main interface, any exec API is redundant; let's turn `simengine` into shared (dynamic) library implementing the API on its own.
> 
> The `pauseengine` does not need to exist on its own; this can be only an option `pause=true` for `simengine`. The implementation is Linux only (and it is out of scope to fill in a non-Linux implementation - the `pause` option can be just excluded in non-Linux `libsimengine`).
> 
> We expect to turn `libcrexec` + `criuengine` into `libcriuengine` in a follow up (not as part of this issue).

Radim Vansa has updated the pull request incrementally with four additional commits since the last revision:

 - Improve deprecation notice
 - ifdef LINUX
 - Add simengine README
 - Make crcommon opaque, remove static_casts, check version

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

Changes:
  - all: https://git.openjdk.org/crac/pull/289/files
  - new: https://git.openjdk.org/crac/pull/289/files/a3c3154e..df1a04c0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=crac&pr=289&range=08
 - incr: https://webrevs.openjdk.org/?repo=crac&pr=289&range=07-08

  Stats: 171 lines in 6 files changed: 49 ins; 28 del; 94 mod
  Patch: https://git.openjdk.org/crac/pull/289.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/289/head:pull/289

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


More information about the crac-dev mailing list