Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dummy dtrace defines for allocate hook.
Browse files Browse the repository at this point in the history
Yorick Peterse committed Nov 14, 2014
1 parent effbc58 commit 434cc3d
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vm/dtrace/dtrace.h
Original file line number Diff line number Diff line change
@@ -48,8 +48,12 @@
} \

#else

#include "dtrace/probes_dummy.h"

#define RUBINIUS_METHOD_HOOK(probe, state, mod, method, previous) do { } while(0)
#define RUBINIUS_OBJECT_ALLOCATE_HOOK(state, obj, frame) do { } while(0)

#endif

#define RUBINIUS_METHOD_ENTRY_HOOK(state, module, method, previous) \
3 changes: 3 additions & 0 deletions vm/dtrace/probes_dummy.h
Original file line number Diff line number Diff line change
@@ -58,6 +58,9 @@ extern "C" {
#define RUBINIUS_JIT_FUNCTION_END_ENABLED() 0
#define RUBINIUS_JIT_FUNCTION_END(arg0, arg1, arg2, arg3) do { } while(0)

#define RUBINIUS_OBJECT_ALLOCATE_ENABLED() 0
#define RUBINIUS_OBJECT_ALLOCATE(arg0, arg1, arg2) do { } while(0)

#ifdef __cplusplus
}
#endif

0 comments on commit 434cc3d

Please sign in to comment.