hxcpp icon indicating copy to clipboard operation
hxcpp copied to clipboard

Finalizers must be marked before they can be run / HXCPP_GC_GENERATIONAL

Open sibest opened this issue 4 years ago • 0 comments

Hi, I think i've found a bug in the GC generational,

In MarkAll gSpecialObjectLock should be locked at begin,

   void MarkAll(bool inGenerational)
   {
   	
   	  // Finalizers must be marked before they can be run
		  #ifdef HXCPP_GC_NURSERY
		  AutoLock lock(*gSpecialObjectLock);
		  #endif

What do you think Hugh ? Thank you

sibest avatar Oct 09 '21 14:10 sibest