dsimcha/druntime — comment on commit f4d798b0138030b80c8d898e237948046e191c0d
File:  line 0
By complexmath:

One thing that I think can be done once this is complete is moving acquiring the GC lock when single-threaded into fullcollect(). When single-threaded, the only way a thread can be spawned while inside GC code is when finalizers are run during a collection. With "synchronized" it was too difficult to have asymmetric lock/unlock calls, but with Mutex this isn't the case. Not sure how much this will buy us in performance though, and we might have to add an isLocked TLS variable as well, so it may not be worthwhile.