Actions
Feature #2260
closedbetter access with GC_DEBUG
Status:
Rejected
Assignee:
-
Target version:
-
Description
=begin
It would be nice to be able to know where [what line of code] objects were allocated one.
For instance
ObjectSpace.each_object{|o| puts o.debug_info }
or something like
a = 'b'
ObjectSpace.describe(a)
=> "instance of String at 0xffff from line 4 file irb"
Then users could use it to more easily search for memory reference leaks.
Since the information is already there with the "-DGC_DEBUG=1" flag, it should be possible.
I'd be happy to give it a shot if it would be useful.
Thoughts?
-r
=end
Actions
Like0
Like0Like0