diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-04-30 22:58:07 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-04-30 23:08:13 -0700 |
commit | f5ddbba9a233c2d32118507158c5ef451167cfe0 (patch) | |
tree | 7c7339745a9c669684d48a9a0c17c4868dbfac28 /mjit_worker.c | |
parent | 96837dc9e039d6f8be667f0662f36635df71cbbe (diff) | |
download | ruby-f5ddbba9a233c2d32118507158c5ef451167cfe0.tar.gz |
Include unit id in a function name of an inlined method
I'm trying to make it possible to include all JIT-ed code in a single C
file. This is needed to guarantee uniqueness of all function names
Diffstat (limited to 'mjit_worker.c')
-rw-r--r-- | mjit_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c index 04eac1f55f..791a6ab76f 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -1120,7 +1120,7 @@ convert_unit_to_func(struct rb_mjit_unit *unit) verbose(2, "start compilation: %s@%s:%ld -> %s", iseq_label, iseq_path, iseq_lineno, c_file); fprintf(f, "/* %s@%s:%ld */\n\n", iseq_label, iseq_path, iseq_lineno); - bool success = mjit_compile(f, unit->iseq, funcname); + bool success = mjit_compile(f, unit->iseq, funcname, unit->id); // release blocking mjit_gc_start_hook CRITICAL_SECTION_START(3, "after mjit_compile to wakeup client for GC"); |