Skip to content

Commit 72aa5c6

Browse files
swannodettenamenu
andauthored
CLJS-3319 make PersistentHashMap release inodes correctly (#121)
Co-authored-by: Hyunwoo Nam <namenu@gmail.com>
1 parent f0e1147 commit 72aa5c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/cljs/cljs/core.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7329,7 +7329,9 @@ reduces them without incurring seq initialization"
73297329
(== bitmap bit) nil
73307330
:else (BitmapIndexedNode. nil (bit-xor bitmap bit) (remove-pair arr idx))))
73317331
(key-test key key-or-nil)
7332-
(BitmapIndexedNode. nil (bit-xor bitmap bit) (remove-pair arr idx))
7332+
(if (== bitmap bit)
7333+
nil
7334+
(BitmapIndexedNode. nil (bit-xor bitmap bit) (remove-pair arr idx)))
73337335
:else inode)))))
73347336

73357337
(inode-lookup [inode shift hash key not-found]

0 commit comments

Comments
 (0)