ruby-changes:25739
From: naruse <ko1@a...>
Date: Thu, 22 Nov 2012 15:31:21 +0900 (JST)
Subject: [ruby-changes:25739] naruse:r37796 (trunk): * vm_insnhelper.h: partly revert r37631 (DTrace support).
naruse 2012-11-22 15:28:17 +0900 (Thu, 22 Nov 2012) New Revision: 37796 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37796 Log: * 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. Modified files: trunk/ChangeLog trunk/vm_insnhelper.h Index: ChangeLog =================================================================== --- ChangeLog (revision 37795) +++ ChangeLog (revision 37796) @@ -1,3 +1,10 @@ +Thu Nov 22 15:26:02 2012 NARUSE, Yui <naruse@r...> + + * 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@i...> * re.c (rb_memsearch_ss): Apply performance improvement to short Index: vm_insnhelper.h =================================================================== --- vm_insnhelper.h (revision 37795) +++ vm_insnhelper.h (revision 37796) @@ -62,12 +62,14 @@ extern char ruby_vm_redefined_flag[BOP_LAST_]; 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_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)) #else +#define COLLECT_USAGE_INSN(insn) /* none */ +#define COLLECT_USAGE_OPERAND(insn, n, op) /* none */ #define COLLECT_USAGE_REGISTER(reg, s) /* none */ #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/