Remove global extend -> include change, identify common cases and change instead
git-svn-id: file:///home/svn/framework3/trunk@9152 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
ac188bebdb
commit
8b93465d46
|
@ -34,6 +34,8 @@ if(RUBY_VERSION =~ /^1\.9\./)
|
|||
Encoding.default_external = Encoding.default_internal = "binary"
|
||||
end
|
||||
|
||||
# Disable: See #1731
|
||||
=begin
|
||||
# Overload Object.extend() to do an include(), this fixes a memory leak in extend() on 1.9
|
||||
# This trick doesn't work for anonymous modules, so we pass those to super()
|
||||
class ::Object
|
||||
|
@ -48,6 +50,8 @@ if(RUBY_VERSION =~ /^1\.9\./)
|
|||
end
|
||||
end
|
||||
end
|
||||
=end
|
||||
|
||||
end
|
||||
|
||||
if(RUBY_PLATFORM == 'java')
|
||||
|
|
Loading…
Reference in New Issue