Simplify condition for setting needs_rehash_p in GC
commit4a0760431dbcfbe4ecf49bf893632cf92219f016
authorDouglas Katzman <dougk@google.com>
Sat, 14 Oct 2017 01:33:04 +0000 (13 21:33 -0400)
committerDouglas Katzman <dougk@google.com>
Sat, 14 Oct 2017 01:47:40 +0000 (13 21:47 -0400)
tree1ec8d4212041a81a7f1e00eac5bf6f28db6b8d84
parent5f6cedeb0cfa720ac53c155e43965f4fe2ca7083
Simplify condition for setting needs_rehash_p in GC

We used to test "(old_key != new_key && new_key != empty_symbol)"
because empty_symbol could move, which wouldn't force rehash.
Now that the empty marker is an immediate object, an empty slot
can't have new_key unequal to old_key.
src/runtime/gc-common.c