diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-18 14:01:52 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-18 14:01:52 +0000 |
commit | ba51ae0109ee1d1fa7ca90b43da115ea68d7214a (patch) | |
tree | 3771533d5fad0702364d5552aa5e79b13a1584d4 /mjit.h | |
parent | 964bbc1686c7dd42d58da504a6968c90d5a428fd (diff) | |
download | bundler-ba51ae0109ee1d1fa7ca90b43da115ea68d7214a.tar.gz |
Eliminate mjit_copy_job_t reference from mjit_worker
Take 2 of r67287.
For some reasons, passing pointer of pointer on stack to a function
and assigning an addresse to a pointer dereferenced from the pointer
seems not working on mswin.
So I achieved to return multiple values by returning struct instead of
taking pointers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.h')
-rw-r--r-- | mjit.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -54,6 +54,12 @@ struct mjit_options { int max_cache_size; }; +typedef struct { + bool success_p; + struct rb_call_cache *cc_entries; + union iseq_inline_storage_entry *is_entries; +} mjit_copy_job_result_t; + typedef VALUE (*mjit_func_t)(rb_execution_context_t *, rb_control_frame_t *); RUBY_SYMBOL_EXPORT_BEGIN |