1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vm.c: disable dtrace in jit source

* vm.c: include dummy dtrace probes header in jit header.

* vm_insnhelper.c: probes headers are included by vm.c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-02-20 03:15:33 +00:00
parent fe5d65f157
commit 49f52937bd
4 changed files with 5 additions and 3 deletions

1
eval.c
View file

@ -18,6 +18,7 @@
#include "ruby/vm.h" #include "ruby/vm.h"
#include "vm_core.h" #include "vm_core.h"
#include "mjit.h" #include "mjit.h"
#include "probes.h"
#include "probes_helper.h" #include "probes_helper.h"
NORETURN(void rb_raise_jump(VALUE, VALUE)); NORETURN(void rb_raise_jump(VALUE, VALUE));

View file

@ -2,7 +2,6 @@
#define RUBY_PROBES_HELPER_H #define RUBY_PROBES_HELPER_H
#include "ruby/ruby.h" #include "ruby/ruby.h"
#include "probes.h"
struct ruby_dtrace_method_hook_args { struct ruby_dtrace_method_hook_args {
const char *classname; const char *classname;

4
vm.c
View file

@ -17,7 +17,11 @@
#include "vm_debug.h" #include "vm_debug.h"
#include "iseq.h" #include "iseq.h"
#include "eval_intern.h" #include "eval_intern.h"
#ifndef MJIT_HEADER
#include "probes.h" #include "probes.h"
#else
#include "probes.dmyh"
#endif
#include "probes_helper.h" #include "probes_helper.h"
VALUE rb_str_concat_literals(size_t, const VALUE*); VALUE rb_str_concat_literals(size_t, const VALUE*);

View file

@ -14,8 +14,6 @@
#include <math.h> #include <math.h>
#include "constant.h" #include "constant.h"
#include "internal.h" #include "internal.h"
#include "probes.h"
#include "probes_helper.h"
#include "ruby/config.h" #include "ruby/config.h"
#include "debug_counter.h" #include "debug_counter.h"