summaryrefslogtreecommitdiff
path: root/mark.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2021-09-04 15:09:34 +0300
committerIvan Maidanski <ivmai@mail.ru>2021-09-04 15:09:34 +0300
commit92555089ea7302196ab82345784aa1215a27c2dd (patch)
treec8d8721de2fadcc36c2ce541f39f1748a2062984 /mark.c
parent7d17f2cdad1ebc3f2330c0602076e763da0b106b (diff)
downloadbdwgc-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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mark.c b/mark.c
index 324d518c..9d170e5f 100644
--- a/mark.c
+++ b/mark.c
@@ -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