If you run dumpHeap() at an approriate point it might tell you what is keeping the code alive.
Bug 1645638 Comment 15 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
If you run dumpHeap() at an appropriate point it might tell you what is keeping the code alive.