Closed AreaZR closed 1 year ago
What is this change trying to address? This seems like a no-op.
It aligns with the definition of NULL better @rokhinip
Well firstly, _dispatch_needs_to_return_to_kernel
is reading an integer value out of a TSD slot, in order to determine if we need to return to the kernel to pump events. So a comparison to NULL is not valid here - nor is (void *)0
because we're not reading pointers.
This change seems like a change for the sake of it without understanding how this code is used in the larger context. Please refer to the guidelines document on how to identify and make useful changes to the project.
Such casts otherwise pessimize optimization