Test marking of finalizer closure object in disclaim_test
authorIvan Maidanski <ivmai@mail.ru>
Wed, 19 Sep 2018 06:57:51 +0000 (09:57 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 19 Sep 2018 07:11:28 +0000 (10:11 +0300)
commita34781d5374f7724a046bec3d7a05ae1b596e318
treec43ebdccb9d63c78f0b909263085ee06ea0eed16
parent21312a008f7b68f31d28d347cd3f9161e4da1ae6
Test marking of finalizer closure object in disclaim_test

* tests/disclaim_test.c (PTR_HASH): New macro.
* tests/disclaim_test.c (pair_dct): Change assertion condition about cd
(it should be equal to the hash value of p).
* tests/disclaim_test.c (pair_new): Replace static fc variable to local
pfc one which is assigned a pointer to atomic object; set pfc->cd to
the hash value of p.
tests/disclaim_test.c