forgot to commit that file some time ago
be sure to catch all malloc() sites #12701
follow bdwgc's recommendations regarding weakref access (even if SE is currently monothread) #12701
code cleanup #12701
more cleanup #12701