]> granicus.if.org Git - gc/commit
Add tests for GC_register/move/unregister_long_link
authorIvan Maidanski <ivmai@mail.ru>
Sun, 9 Dec 2012 18:36:09 +0000 (22:36 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 9 Dec 2012 18:36:09 +0000 (22:36 +0400)
commit3939770d7751909cdef53c561b5604621e71fd0f
tree32bf14cad2ea131bcd0fcb95397faf853f93cf14
parenta757207828fc882e8a4bf3b8d2774d0502258971
Add tests for GC_register/move/unregister_long_link

* tests/test.c (live_long_refs): New global variable (only if
not GC_LONG_REFS_NOT_NEEDED and not MACOS).
* tests/test.c (mktree): Test GC_REGISTER_LONG_LINK,
GC_move_long_link, GC_unregister_long_link (using live_long_refs)
unless GC_LONG_REFS_NOT_NEEDED.
* tests/test.c (check_heap_stats): Define "still_long_live" local
variable, count non-null elements of live_long_refs, print number of
non-null elements of live_long_refs (if any) unless
GC_LONG_REFS_NOT_NEEDED.
tests/test.c