diff --git a/ext/objspace/lib/objspace/trace.rb b/ext/objspace/lib/objspace/trace.rb index df803bbae6..c23f5a9d52 100644 --- a/ext/objspace/lib/objspace/trace.rb +++ b/ext/objspace/lib/objspace/trace.rb @@ -26,6 +26,7 @@ require 'objspace.so' module Kernel + remove_method :p define_method(:p) do |*objs| objs.each do |obj| file = ObjectSpace.allocation_sourcefile(obj)