diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-04-11 07:23:00 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-04-11 14:24:07 +0300 |
commit | 6eb3dd3483fa870176ffe6390bd964b67208dce0 (patch) | |
tree | 98381f69c4c5069d4f8a735b6bbb31ec8816586e /mark_rts.c | |
parent | d80ce053ff9701ccac04506267bbdf30be350481 (diff) | |
download | bdwgc-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 'mark_rts.c')
-rw-r--r-- | mark_rts.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -525,6 +525,9 @@ struct exclusion GC_excl_table[MAX_EXCLUSIONS]; -- address order. */ +/* Clear the number of entries in the exclusion table. The caller */ +/* should acquire the GC lock (to avoid data race) but no assertion */ +/* about it by design. */ GC_API void GC_CALL GC_clear_exclusion_table(void) { GC_excl_table_entries = 0; |