Use NULL instead of END_X_QUEUE closures?

2018-05-07 Thread Ömer Sinan Ağacan
Currently we sometimes use special closures to mark end of lists of different objects. Some examples: - END_TSO_QUEUE - END_STM_WATCH_QUEUE - END_STM_CHUNK_LIST But we also use NULL for the same thing, e.g. in weak pointer lists (old_weak_ptr_list, weak_ptr_list). I'm wondering why we need speci

Re: Use NULL instead of END_X_QUEUE closures?

2018-05-07 Thread Ryan Yates
Hi Ömer, These are pointed to by objects traversed by GC. They have info tables like any other heap object that GC can understand. I think this is a much simpler invariant to hold then to have some heap objects point to NULL. Ryan On Mon, May 7, 2018 at 3:34 PM, Ömer Sinan Ağacan wrote: > Cu