diff options
author | Josh Peterson <joshuap@unity3d.com> | 2020-05-18 09:39:39 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2020-05-18 09:39:39 +0300 |
commit | 9b5e49f33cb84d555e94f85e42563d48177b797d (patch) | |
tree | ae97b6126b34820850657b883c2f107c7f242e53 /include/gc.h | |
parent | b26e281bcac33444f523862b97f81e2a74bc2b4d (diff) | |
download | bdwgc-9b5e49f33cb84d555e94f85e42563d48177b797d.tar.gz |
New API function to clear GC exclusion table
(part of commit 8b95edbd6 from Unity-Technologies/bdwgc)
* include/gc.h (GC_clear_exclusion_table): Declare new API function.
* mark_rts.c (GC_clear_exclusion_table): Implement.
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS] (main): Call
GC_clear_exclusion_table.
Diffstat (limited to 'include/gc.h')
-rw-r--r-- | include/gc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gc.h b/include/gc.h index 54d76962..fc04d90d 100644 --- a/include/gc.h +++ b/include/gc.h @@ -618,6 +618,9 @@ GC_API void GC_CALL GC_set_max_heap_size(GC_word /* n */); 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. */ +GC_API void GC_CALL GC_clear_exclusion_table(void); + /* Clear the set of root segments. Wizards only. */ GC_API void GC_CALL GC_clear_roots(void); |