diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-06 13:31:07 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-06 15:52:02 +0900 |
commit | b726c06e7eeafff52e368179dbe79a11b1aff975 (patch) | |
tree | 1e3c8cf213014d8d51d034a24fcf46bd1e983605 /mjit.h | |
parent | 341b40bd0c2228a7759852b82af1fb11c15751e6 (diff) |
Allow hooking a different method after --mjit=pause
The interface is similar to RubyVM::ISeq.translate; it's used if defined.
Same as --mjit=pause, this is an undocumented feature for MJIT experiments.
Diffstat (limited to 'mjit.h')
-rw-r--r-- | mjit.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -59,8 +59,10 @@ struct mjit_options { // Maximal permitted number of iseq JIT codes in a MJIT memory // cache. int max_cache_size; - // [experimental] If true, do not start MJIT until MJIT.resume is called. + // [experimental] Do not start MJIT until MJIT.resume is called. bool pause; + // [experimental] Call custom RubyVM::MJIT.compile instead of MJIT. + bool custom; }; // State of optimization switches |