]> granicus.if.org Git - gc/commit
Fix mutex_trylock failure in disclaim_weakmap_test in leak detection mode
authorIvan Maidanski <ivmai@mail.ru>
Fri, 23 Nov 2018 06:23:02 +0000 (09:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 23 Nov 2018 06:23:02 +0000 (09:23 +0300)
commit20cfa75b7b552284c7ec201ed56a11be68a34dd7
treeebb33b552beb7091f65d51b31691b2a376885868
parent83c4564291c9662a416898687c5477bcd8b63740
Fix mutex_trylock failure in disclaim_weakmap_test in leak detection mode

* tests/disclaim_weakmap_test.c (weakmap.links): Add comment.
* tests/disclaim_weakmap_test.c (weakmap_disclaim): If wm->links is
null then return 0 (do not use wm).
* tests/disclaim_weakmap_test.c (weakmap_destroy): Set links to null.
tests/disclaim_weakmap_test.c