summaryrefslogtreecommitdiff
path: root/include/gc_disclaim.h
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-01-31 19:52:40 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-03-14 11:40:23 +0300
commitd2b01b2d0758bc0d29855431e1aab28a42198c1b (patch)
tree96fce736b9354502e2cb7a0467ee7c1a702fcfc2 /include/gc_disclaim.h
parent1d22f1697cfd6279e6a987b339b7810b9d1180b8 (diff)
downloadbdwgc-d2b01b2d0758bc0d29855431e1aab28a42198c1b.tar.gz
Do not mix debug and non-debug allocations in disclaim tests
(a cherry-pick of commit 30d32b4e9 from 'master') * include/gc_disclaim.h (GC_finalized_malloc): Add comment that the debugging version of the function is missing. * tests/disclaim_bench.c (testobj_new): Use GC_malloc() instead of GC_NEW(). * tests/disclaim_weakmap_test.c (weakmap_add, weakmap_new): Likewise. * tests/disclaim_bench.c (testobj_new): Use GC_register_finalizer_no_order() instead of GC_REGISTER_FINALIZER_NO_ORDER(). * tests/disclaim_bench.c (main): Use GC_malloc() instead of GC_MALLOC(). * tests/weakmap.c (weakmap_add, weakmap_new): Use GC_ptr_store_and_dirty() instead of GC_PTR_STORE_AND_DIRTY().
Diffstat (limited to 'include/gc_disclaim.h')
-rw-r--r--include/gc_disclaim.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gc_disclaim.h b/include/gc_disclaim.h
index f2942cdb..6394b05e 100644
--- a/include/gc_disclaim.h
+++ b/include/gc_disclaim.h
@@ -63,6 +63,7 @@ struct GC_finalizer_closure {
/* slightly bigger than the specified allocation size, and that GC_base */
/* result points to a word prior to the start of the allocated object. */
/* The disclaim procedure is not invoked in the leak-finding mode. */
+/* There is no debugging version of this allocation API. */
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
GC_finalized_malloc(size_t /*size*/,
const struct GC_finalizer_closure * /*fc*/) GC_ATTR_NONNULL(2);