diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-11 14:18:55 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-11 14:18:55 +0000 |
commit | 004b8ad0c349070fdea552dcab0fb21c04dbc105 (patch) | |
tree | 71fc219aa66504c2ccf1db4bd36e16f51a2f47f8 /mjit_compile.c | |
parent | 591b2566d71a9c6106333fffd019cab4f64cf816 (diff) |
mjit_worker.c: don't use ruby_strdup
on MJIT worker. That may trigger GC. And handled strdup failure instead.
mjit_compile.c: update comment about GC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_compile.c')
-rw-r--r-- | mjit_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit_compile.c b/mjit_compile.c index 6ac5ec66b0..d7741f5383 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -8,7 +8,7 @@ /* NOTE: All functions in this file are executed on MJIT worker. So don't call Ruby methods (C functions that may call rb_funcall) or trigger - GC (using xmalloc, ZALLOC, etc.) in this file. */ + GC (using ZALLOC, xmalloc, xfree, etc.) in this file. */ #include "internal.h" #include "vm_core.h" |