diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-08-04 10:08:09 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-08-05 08:28:53 +0300 |
commit | 12c142f2b0b6675420eafcbcf9b53db0d9617d19 (patch) | |
tree | 795ca8010243b601627ba3689d148ffc0406bdb9 /reclaim.c | |
parent | f3a2a1bb9285f4aabf5f4564649db0fef609c3b3 (diff) | |
download | bdwgc-12c142f2b0b6675420eafcbcf9b53db0d9617d19.tar.gz |
New GC_count_set_marks_in_hblk API function
Issue #460 (bdwgc).
Note: available on if the collector is built without NO_DEBUGGING.
* include/gc/gc_mark.h (GC_count_set_marks_in_hblk): New API function.
* reclaim.c [!NO_DEBUGGING] (GC_count_set_marks_in_hblk): Implement.
* tests/gctest.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS && CPPCHECK
&& !NO_DEBUGGING] (main): Call UNTESTED(GC_count_set_marks_in_hblk).
Diffstat (limited to 'reclaim.c')
-rw-r--r-- | reclaim.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -561,6 +561,10 @@ unsigned GC_n_set_marks(hdr *hhdr) #endif /* !USE_MARK_BYTES */ +GC_API unsigned GC_CALL GC_count_set_marks_in_hblk(const void *p) { + return GC_n_set_marks(HDR(p)); +} + STATIC void GC_CALLBACK GC_print_block_descr(struct hblk *h, GC_word /* struct PrintStats */ raw_ps) { |