diff options
| author | Godfrey Chan <godfreykfc@gmail.com> | 2025-11-17 08:15:16 -0800 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-11-18 08:35:09 -0800 |
| commit | f84bbb423836d9d0d018b8ab71ecceb5868fd5be (patch) | |
| tree | cd02763c9bcdf30c57734ccbbb91cfa46dac22e1 /include/ruby | |
| parent | c38486ffef14f4991288afe9c0d8d23f57b617fc (diff) | |
ZJIT: add support for lazy `RubyVM::ZJIT.enable`
This implements Shopify#854:
- Splits boot-time and enable-time initialization,
tracks progress with `InitializationState` enum
- Introduces `RubyVM::ZJIT.enable` Ruby method for
enabling the JIT lazily, if not already enabled
- Introduces `--zjit-disable` flag, which can be
used alongside the other `--zjit-*` flags but
prevents enabling the JIT at boot time
- Adds ZJIT infra to support JIT hooks, but this
is not currently exercised (Shopify/ruby#667)
Left for future enhancements:
- Support kwargs for overriding the CLI flags in
`RubyVM::ZJIT.enable`
Closes Shopify#854
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
