From ba51ae0109ee1d1fa7ca90b43da115ea68d7214a Mon Sep 17 00:00:00 2001 From: k0kubun Date: Mon, 18 Mar 2019 14:01:52 +0000 Subject: 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 --- mjit.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mjit.h') diff --git a/mjit.h b/mjit.h index 57d39987e5..ff52b9a54d 100644 --- a/mjit.h +++ b/mjit.h @@ -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 -- cgit v1.2.1