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 /mark_rts.c | |
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 'mark_rts.c')
-rw-r--r-- | mark_rts.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -534,6 +534,11 @@ struct exclusion GC_excl_table[MAX_EXCLUSIONS]; STATIC size_t GC_excl_table_entries = 0;/* Number of entries in use. */ +GC_API void GC_CALL GC_clear_exclusion_table(void) +{ + GC_excl_table_entries = 0; +} + /* Return the first exclusion range that includes an address >= start_addr */ /* Assumes the exclusion table contains at least one entry (namely the */ /* GC data structures). */ |