diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-09-04 15:09:34 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-09-04 15:09:34 +0300 |
commit | 92555089ea7302196ab82345784aa1215a27c2dd (patch) | |
tree | c8d8721de2fadcc36c2ce541f39f1748a2062984 /mark.c | |
parent | 7d17f2cdad1ebc3f2330c0602076e763da0b106b (diff) | |
download | bdwgc-92555089ea7302196ab82345784aa1215a27c2dd.tar.gz |
Do not report 'Incremental GC incompatible' warning more than once
* mark.c [!MSWIN32 && !MSWINCE && !DEFAULT_VDB] (GC_mark_some):
Define is_warned static variable; issue WARN about incremental GC
incompatibility just once.
Diffstat (limited to 'mark.c')
-rw-r--r-- | mark.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -525,7 +525,12 @@ static void alloc_mark_stack(size_t); /* avoid otherwise. */ # ifndef DEFAULT_VDB if (GC_auto_incremental) { - WARN("Incremental GC incompatible with /proc roots\n", 0); + static GC_bool is_warned = FALSE; + + if (!is_warned) { + is_warned = TRUE; + WARN("Incremental GC incompatible with /proc roots\n", 0); + } /* I'm not sure if this could still work ... */ } # endif |