[#63592] [ruby-trunk - Bug #10009] IO operation is 10x slower in multi-thread environment — normalperson@...
Issue #10009 has been updated by Eric Wong.
3 messages
2014/07/08
[#63682] [ruby-trunk - Feature #10030] [PATCH] reduce rb_iseq_struct to 296 bytes — ko1@...
Issue #10030 has been updated by Koichi Sasada.
3 messages
2014/07/13
[#63703] [ruby-trunk - Feature #10030] [PATCH] reduce rb_iseq_struct to 296 bytes — ko1@...
Issue #10030 has been updated by Koichi Sasada.
3 messages
2014/07/14
[#63743] [ruby-trunk - Bug #10037] Since r46798 on Solaris, "[BUG] rb_vm_get_cref: unreachable" during make — ngotogenome@...
Issue #10037 has been updated by Naohisa Goto.
3 messages
2014/07/15
[#64136] Ruby 2.1.2 (and 2.1.1 and probably others) assumes a libffi with 3 version numbers in extconf.rb — "Jeffrey 'jf' Lim" <jfs.world@...>
As per subject.
4 messages
2014/07/31
[#64138] Re: Ruby 2.1.2 (and 2.1.1 and probably others) assumes a libffi with 3 version numbers in extconf.rb
— "Jeffrey 'jf' Lim" <jfs.world@...>
2014/07/31
On Thu, Jul 31, 2014 at 6:03 PM, Jeffrey 'jf' Lim <jfs.world@gmail.com>
[ruby-core:63766] [ruby-trunk - Bug #9938] [Rejected] ObjectSpace::allocation_class_path does not object's class
From:
ko1@...
Date:
2014-07-16 07:26:35 UTC
List:
ruby-core #63766
Issue #9938 has been updated by Koichi Sasada.
Status changed from Open to Rejected
----------------------------------------
Bug #9938: ObjectSpace::allocation_class_path does not object's class
https://bugs.ruby-lang.org/issues/9938#change-47803
* Author: David Unric
* Status: Rejected
* Priority: Normal
* Assignee: Koichi Sasada
* Category: core
* Target version:
* ruby -v: 2.1.2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Possible bug in `ObjectSpace::allocation_class_path` returning `nil` instead of expected class name:
~~~ruby
require 'objspace'
class A
def foo
ObjectSpace::trace_object_allocations do
obj = Object.new
p ObjectSpace::allocation_class_path(obj) # "A" expected, prints nil instead
obj = Array.new
p ObjectSpace::allocation_class_path(obj) # "A" expected, prints nil instead
obj = []
p ObjectSpace::allocation_class_path(obj) # prints "A" as expected !!
obj = obj.dup
p ObjectSpace::allocation_class_path(obj) # "A" expected, prints nil instead !!
obj = Hash.new
p ObjectSpace::allocation_class_path(obj) # "A" expected, prints nil instead
obj = {}
p ObjectSpace::allocation_class_path(obj) # prints "A" as expected !!
end
end
end
A.new.foo
~~~
Very inconsistent behavior, `allocation_class_path` seems to works only with objects defined with literals not instantiated with `class.new` method.
Also discussed at StackOverflow:
http://stackoverflow.com/questions/24181789/objectspaceallocation-class-path-not-working-as-expected
--
https://bugs.ruby-lang.org/