Project

General

Profile

« Previous | Next » 

Revision 16057041

Added by ko1 (Koichi Sasada) about 1 month ago

ignore confirming belonging while finrializer

A finalizer registerred in Ractor A can be invoked in B.

require "tempfile"
r = Ractor.new{
  10_000.times{|i|
    Tempfile.new(["file_to_require_from_ractor#{i}", ".rb"])
  }
}
sleep 0.1

For example, above script makes tempfiles which have finalizers
on Ractor r, but at the end of the process, main Ractor will invoke
finalizers and it violates belonging check. This patch just ignore
the belonging check to avoid CI failure.

Of course it violates Ractor's isolation and wrong workaround.
This issue will be solved with Ractor local GC.