summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-04-11 07:23:00 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-04-11 14:24:07 +0300
commit6eb3dd3483fa870176ffe6390bd964b67208dce0 (patch)
tree98381f69c4c5069d4f8a735b6bbb31ec8816586e /include
parentd80ce053ff9701ccac04506267bbdf30be350481 (diff)
downloadbdwgc-6eb3dd3483fa870176ffe6390bd964b67208dce0.tar.gz
Document assumption about GC lock for GC_clear_exclusion_table
* include/gc/gc.h (GC_clear_exclusion_table): Add comment about GC lock. * mark_rts.c (GC_clear_exclusion_table): Likewise. * mark_rts.c (GC_clear_exclusion_table): Copy comment from gc.h.
Diffstat (limited to 'include')
-rw-r--r--include/gc/gc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gc/gc.h b/include/gc/gc.h
index 892642aa..fc255677 100644
--- a/include/gc/gc.h
+++ b/include/gc/gc.h
@@ -686,6 +686,7 @@ GC_API void GC_CALL GC_exclude_static_roots(void * /* low_address */,
void * /* high_address_plus_1 */);
/* Clear the number of entries in the exclusion table. Wizards only. */
+/* Should be called typically with the GC lock held. */
GC_API void GC_CALL GC_clear_exclusion_table(void);
/* Clear the set of root segments. Wizards only. */