internal static unsafe bool WaitForGCEvent(int currentThreadIndex) { AutoResetEvent are = threadTable[currentThreadIndex].processGcEvent; // BUGBUG: The restoration of the gcState should be taken // care of by the compiler. return(are.WaitOneNoGC()); }