Peter Zhu 0610f1b083 Fix crash when GC runs during finalizers at shutdown
We need to remove from the finalizer_table after running all the
finalizers because GC could trigger during the finalizer which could
reclaim the finalizer table array.

The following code crashes:

    1_000_000.times do
      o = Object.new
      ObjectSpace.define_finalizer(o, proc { })
    end
2024-08-14 13:49:52 -04:00
..
2024-08-04 14:53:51 +00:00
2024-07-30 07:33:43 +08:00
2024-07-17 17:37:57 +09:00
2024-07-25 18:59:10 +00:00
2024-08-05 08:27:45 +08:00
2024-08-05 17:26:13 +00:00
2024-07-08 06:18:57 +00:00