The following code appears to cause an infinite loop in JRuby 1.7.17 (OpenBSD) and 1.7.6 (Windows):
def a
c = Class.new
c2 = Class.new
c.const_set(:A, c2)
c2.const_set(:A, c)
end
Calling that a method causes the CPU to go to 100%, and requires a kill -9 to kill the process.