Skip to content

Commit

Permalink
vm.c: disable dtrace in jit source
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Feb 20, 2018
1 parent fe5d65f commit 49f5293
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "ruby/vm.h"
#include "vm_core.h"
#include "mjit.h"
#include "probes.h"
#include "probes_helper.h"

NORETURN(void rb_raise_jump(VALUE, VALUE));
Expand Down
1 change: 0 additions & 1 deletion probes_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define RUBY_PROBES_HELPER_H

#include "ruby/ruby.h"
#include "probes.h"

struct ruby_dtrace_method_hook_args {
const char *classname;
Expand Down
4 changes: 4 additions & 0 deletions vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
#include "vm_debug.h"
#include "iseq.h"
#include "eval_intern.h"
#ifndef MJIT_HEADER
#include "probes.h"
#else
#include "probes.dmyh"
#endif
#include "probes_helper.h"

VALUE rb_str_concat_literals(size_t, const VALUE*);
Expand Down
2 changes: 0 additions & 2 deletions vm_insnhelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#include <math.h>
#include "constant.h"
#include "internal.h"
#include "probes.h"
#include "probes_helper.h"
#include "ruby/config.h"
#include "debug_counter.h"

Expand Down

0 comments on commit 49f5293

Please sign in to comment.