Transparently hooking into the STG stack to validate an escape analysis