Skip to content

Commit

Permalink
Dummy dtrace defines for allocate hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yorick Peterse committed Nov 14, 2014
1 parent effbc58 commit 434cc3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vm/dtrace/dtrace.h
Expand Up @@ -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) \
Expand Down
3 changes: 3 additions & 0 deletions vm/dtrace/probes_dummy.h
Expand Up @@ -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
Expand Down

0 comments on commit 434cc3d

Please sign in to comment.