summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-04-10 08:16:21 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-04-10 13:28:20 +0300
commitd4c4a7ba5e05ccff1ac9b9159d53c5975057d4a9 (patch)
tree63953fad6c73131bc8b2685143f023d2fcd601cb /include
parent05ee810c3b24c10c348f3c8ce367bf952aa65207 (diff)
downloadbdwgc-d4c4a7ba5e05ccff1ac9b9159d53c5975057d4a9.tar.gz
Do not prohibit zero proc argument in GC_register_disclaim_proc
(fix of commit 1d3675499) * fnlz_mlc.c [ENABLE_DISCLAIM] (GC_register_disclaim_proc): Do not check that proc is non-zero. * include/gc/gc_disclaim.h (GC_register_disclaim_proc): Remove GC_ATTR_NONNULL(2) attribute. * reclaim.c [ENABLE_DISCLAIM] (GC_disclaim_and_reclaim): Add assertion that disclaim is non-zero.
Diffstat (limited to 'include')
-rw-r--r--include/gc/gc_disclaim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gc/gc_disclaim.h b/include/gc/gc_disclaim.h
index ca5ba79f..df5506de 100644
--- a/include/gc/gc_disclaim.h
+++ b/include/gc/gc_disclaim.h
@@ -43,7 +43,7 @@ typedef int (GC_CALLBACK * GC_disclaim_proc)(void * /*obj*/);
/* Acquires the allocation lock. No-op in the leak-finding mode. */
GC_API void GC_CALL GC_register_disclaim_proc(int /*kind*/,
GC_disclaim_proc /*proc*/,
- int /*mark_from_all*/) GC_ATTR_NONNULL(2);
+ int /*mark_from_all*/);
/* The finalizer closure used by GC_finalized_malloc. */
struct GC_finalizer_closure {