Skip to content

Commit

Permalink
* vm_insnhelper.h: partly revert r37631 (DTrace support).
Browse files Browse the repository at this point in the history
  "vm usage information is always collected, so uncomment the
  functions." causes performance impact. [Bug #7370]
  Off course this revert disables related probes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Nov 22, 2012
1 parent d5d2440 commit 4ba69a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
Thu Nov 22 15:26:02 2012 NARUSE, Yui <naruse@ruby-lang.org>

* vm_insnhelper.h: partly revert r37631 (DTrace support).
"vm usage information is always collected, so uncomment the
functions." causes performance impact. [Bug #7370]
Off course this revert disables related probes.

Thu Nov 22 14:14:36 2012 Akinori MUSHA <knu@iDaemons.org> Thu Nov 22 14:14:36 2012 Akinori MUSHA <knu@iDaemons.org>


* re.c (rb_memsearch_ss): Apply performance improvement to short * re.c (rb_memsearch_ss): Apply performance improvement to short
Expand Down
4 changes: 3 additions & 1 deletion vm_insnhelper.h
Expand Up @@ -62,12 +62,14 @@ enum {
extern char ruby_vm_redefined_flag[BOP_LAST_]; extern char ruby_vm_redefined_flag[BOP_LAST_];
extern VALUE ruby_vm_const_missing_count; extern VALUE ruby_vm_const_missing_count;


#if VM_COLLECT_USAGE_DETAILS
#define COLLECT_USAGE_INSN(insn) vm_collect_usage_insn(insn) #define COLLECT_USAGE_INSN(insn) vm_collect_usage_insn(insn)
#define COLLECT_USAGE_OPERAND(insn, n, op) vm_collect_usage_operand((insn), (n), ((VALUE)(op))) #define COLLECT_USAGE_OPERAND(insn, n, op) vm_collect_usage_operand((insn), (n), ((VALUE)(op)))


#if VM_COLLECT_USAGE_DETAILS
#define COLLECT_USAGE_REGISTER(reg, s) vm_collect_usage_register((reg), (s)) #define COLLECT_USAGE_REGISTER(reg, s) vm_collect_usage_register((reg), (s))
#else #else
#define COLLECT_USAGE_INSN(insn) /* none */
#define COLLECT_USAGE_OPERAND(insn, n, op) /* none */
#define COLLECT_USAGE_REGISTER(reg, s) /* none */ #define COLLECT_USAGE_REGISTER(reg, s) /* none */
#endif #endif


Expand Down

0 comments on commit 4ba69a4

Please sign in to comment.