Clarifying when exactly ephemerons get 'emptied'

I need to update you again on this–you were right actually! Using a boxed key was indeed partly the answer. My other clue was from here, to do a full GC collection. With these two things, I was able to show in a unit test that the behaviour I described in Use Case for Ephemerons? is actually happening. Diff in case of interest: https://github.com/yawaramin/re-web/commit/e51fc836e9c4f59a96f599252cac21c399b45e55#diff-3fd5d52226a6bee323695d95b97dce6c

1 Like