summaryrefslogtreecommitdiff
path: root/rjit.c
AgeCommit message (Collapse)Author
2024-03-12Revisions for #10198Takashi Kokubun
This fixes some inconsistencies introduced by that PR.
2024-02-15Do not include a backtick in error messages and backtracesYusuke Endoh
[Feature #16495]
2023-12-22RJIT: Rewind $! after compilationTakashi Kokubun
2023-12-21RJIT: Make --rjit-trace actually workTakashi Kokubun
2023-12-21RJIT: Add --rjit-trace to allow TracePoint during JITTakashi Kokubun
2023-12-21RJIT: Avoid incrementing vm_insns_countTakashi Kokubun
during compilation
2023-12-21RJIT: Rename pause/resume to disable/enableTakashi Kokubun
like YJIT. They don't work in the same way yet, but it's nice to make the naming consistent first so that we will not need to rename them later.
2023-12-18RJIT: Share rb_vm_insns_count for vm_insns_countTakashi Kokubun
2023-12-10add `flags` to `rb_postponed_job_preregister`Koichi Sasada
for future extensions.
2023-12-10Change the semantics of rb_postponed_job_registerKJ Tsanaktsidis
Our current implementation of rb_postponed_job_register suffers from some safety issues that can lead to interpreter crashes (see bug #1991). Essentially, the issue is that jobs can be called with the wrong arguments. We made two attempts to fix this whilst keeping the promised semantics, but: * The first one involved masking/unmasking when flushing jobs, which was believed to be too expensive * The second one involved a lock-free, multi-producer, single-consumer ringbuffer, which was too complex The critical insight behind this third solution is that essentially the only user of these APIs are a) internal, or b) profiling gems. For a), none of the usages actually require variable data; they will work just fine with the preregistration interface. For b), generally profiling gems only call a single callback with a single piece of data (which is actually usually just zero) for the life of the program. The ringbuffer is complex because it needs to support multi-word inserts of job & data (which can't be atomic); but nobody actually even needs that functionality, really. So, this comit: * Introduces a pre-registration API for jobs, with a GVL-requiring rb_postponed_job_prereigster, which returns a handle which can be used with an async-signal-safe rb_postponed_job_trigger. * Deprecates rb_postponed_job_register (and re-implements it on top of the preregister function for compatability) * Moves all the internal usages of postponed job register pre-registration
2023-04-26RJIT: Tweak the default call thresholdTakashi Kokubun
This number works better on yjit-bench (ruby-lsp).
2023-04-04RJIT: Add --rjit-verify-ctx optionTakashi Kokubun
2023-04-02RJIT: Support entry with different PCsTakashi Kokubun
2023-03-18RJIT: Prefix rjit_options with rb_Takashi Kokubun
2023-03-17RJIT: Support --rjit-stats on release build as wellTakashi Kokubun
2023-03-12RJIT: Implement --rjit-trace-exitsTakashi Kokubun
2023-03-10RJIT: Introduce --rjit-exec-mem-sizeTakashi Kokubun
2023-03-09RJIT: Resurrect --rjit-pause and RJIT.resumeTakashi Kokubun
2023-03-08RJIT: Make functions in rjit_c.c staticTakashi Kokubun
They don't need to be global.
2023-03-08RJIT: Reorganize rjit.cTakashi Kokubun
Reordering functions for readability, adding stats whenever possible.
2023-03-08RJIT: Stop allowing leaked globals rjit_*Takashi Kokubun
2023-03-08RJIT: Get rid of verbose loggingTakashi Kokubun
2023-03-08RJIT: Clean up the declaration messTakashi Kokubun
2023-03-07Remove obsoleted functions in rjit.cTakashi Kokubun
2023-03-07Update documentation about RJITTakashi Kokubun
2023-03-07Fix a typoTakashi Kokubun
2023-03-07Allow enabling YJIT and RJIT independently (#7474)Takashi Kokubun
We used to require MJIT is supported when YJIT is supported. However, now that RJIT dropped some platforms that YJIT supports, it no longer makes sense. We should be able to enable only YJIT, and vice versa. Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-03-07Actually stop supporting those optionsTakashi Kokubun
2023-03-07Update options available in RJITTakashi Kokubun
2023-03-06s/mjit/rjit/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2023-03-06s/MJIT/RJIT/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2023-03-06Rename MJIT filenames to RJITTakashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462