.NET allows each finalizer thread up to 2 seconds to complete and 40 seconds for...
authorNeale Ferguson <neale@sinenomine.net>
Sun, 18 Dec 2016 13:08:48 +0000 (08:08 -0500)
committerZoltan Varga <vargaz@gmail.com>
Sun, 18 Dec 2016 13:08:48 +0000 (08:08 -0500)
commit933bda30fdda1b74e8ac76002275a3faa4f5e398
tree3c829d1684cd0553952145f435d748a654655a08
parentf7ea181e35a4e5e4a8c05d16ca1fa8c843c52bbd
.NET allows each finalizer thread up to 2 seconds to complete and 40 seconds for all threads to complete. However, mono just allows 2 seconds for all finalizers. Some complex applications easily exceed this and this results in thread aborts to be invoked. This fix is simplistic as it simply replaces the 2 seconds with 40 without addressing the 2 seconds per finalizer thread. This problem is more complex but this fix will circumvent the problem until a final option is designed and implemented. (#4162)
mono/metadata/gc.c