Skip to content

rts: allow NULL to be used as an invalid StgStablePtr

adam requested to merge wip/adamse/null-stable-ptr into master

Previously you could have a NULL stable ptr that would dereference to a valid closure that you might not expect, like in getTopHandlerThread where NULL meant uninitialised.

  • add some tests perhaps
  • write the note
  • check if there are more cases like getTopHandlerThread where we should check the returned value
  • longer commit message, reference #20998
Edited by adam

Merge request reports