Project

General

Profile

« Previous | Next » 

Revision 6588bbfa

Added by peterzhu2118 (Peter Zhu) 8 months ago

Fix wmap_compact from potentially corrupting ST table

Since we hash by the address of the key in the WeakMap, we cannot change
the key in the same entry because deleting the key could require hashing.

This commit changes it to allocate and insert a new entry if the key has
moved.