summaryrefslogtreecommitdiff
path: root/zjit/src/lib.rs
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-02-06 13:57:49 -0500
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:56 +0900
commit750480d624f1dd78d2f4a4b2e7514613e3f6c2f5 ()
tree46c9d43a8d07f5edc6b074af0797d9779a3245d8 /zjit/src/lib.rs
parent106b328117cd02f22c4344b250e4836475bff59e (diff)
Set up the panic handler
Notes: Merged: https://.com/ruby/ruby/pull/13131
-rw-r--r--zjit/src/lib.rs52
1 files changed, 50 insertions, 2 deletions
@@ -6,6 +6,8 @@ mod ir;
mod stats;
mod utils;
mod virtualmem;
use crate::cruby::*;
#[allow(non_upper_case_globals)]
@@ -15,8 +17,54 @@ mod asm;
#[no_mangle]
pub extern "C" fn rb_zjit_init() {
- assert!(unsafe{ !rb_zjit_enabled_p });
- unsafe { rb_zjit_enabled_p = true; }
}
#[no_mangle]