From: shyouhei@... Date: 2017-04-17T07:35:24+00:00 Subject: [ruby-core:80729] [Ruby trunk Feature#13265][Assigned] TracePoint for basic operation redefinition Issue #13265 has been updated by shyouhei (Shyouhei Urabe). Status changed from Open to Assigned Assignee set to ko1 (Koichi Sasada) ---------------------------------------- Feature #13265: TracePoint for basic operation redefinition https://bugs.ruby-lang.org/issues/13265#change-64282 * Author: magaudet (Matthew Gaudet) * Status: Assigned * Priority: Normal * Assignee: ko1 (Koichi Sasada) * Target version: ---------------------------------------- Add TracePoint for basic operation redefinition. This infrequent event can have an outsized performance impact by eliminating a lot of the optimization that exists in the Ruby interpreter. In order to know when these sorts of things happen, this patch adds a trace point that will fire when a basic operation is redefined. The event data can be accessed by calling #basic_operation_redefined, which returns a hash of the class being modified and the basic operation that's been redefined. This patch may also be useful for JIT compilers that want to speculate on basic operation definitions. This is my first patch to Ruby, and I'd welcome and appreciate any feedback or desired changes. ---Files-------------------------------- 0001-Add-TracePoint-for-basic-operation-redefinition.patch (6.13 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: