-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* vm_trace.c (fill_id_and_klass): TracePoint#defined_class returns
singleton class. `set_trace_func' passed attached class (which is attached/modified by singleton class) by 6th block parameter if it is singleton class. Previous behavior follows this spec. However, this method named `defined_class' should return singleton class directly because singleton methods are defined in singleton class. There are no compatible issue because TracePoint is introduced after 2.0. But compatiblity with `set_trace_func' is brokne. This means that you can not replace all `set_trace_func' code with TracePoint without consideration of this behavior. [Bug ruby#7554] * test/ruby/test_settracefunc.rb: change a test to catch up an above chagne. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Loading branch information
Showing
3 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
Tue Dec 18 04:58:22 2012 Koichi Sasada <[email protected]> | ||
|
||
* vm_trace.c (fill_id_and_klass): TracePoint#defined_class returns | ||
singleton class. `set_trace_func' passed attached class (which is | ||
attached/modified by singleton class) by 6th block parameter if it | ||
is singleton class. Previous behavior follows this spec. | ||
However, this method named `defined_class' should return singleton | ||
class directly because singleton methods are defined in singleton | ||
class. There are no compatible issue because TracePoint is introduced | ||
after 2.0. | ||
But compatiblity with `set_trace_func' is brokne. This means that | ||
you can not replace all `set_trace_func' code with TracePoint | ||
without consideration of this behavior. | ||
[Bug #7554] | ||
|
||
* test/ruby/test_settracefunc.rb: change a test to catch up | ||
an above chagne. | ||
|
||
Tue Dec 18 03:03:10 2012 Aaron Patterson <[email protected]> | ||
|
||
* ext/psych/lib/psych/visitors/to_ruby.rb: speed up node mapping so | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters