diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-10-03 07:41:50 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-10-03 07:48:51 +0300 |
commit | 97cca6230ff1a1b6057188ae3e16a2f2d2f6d0c5 (patch) | |
tree | 4632780ce2e59c28eb40e129705c0ed3dc917a1c /mark.c | |
parent | 03f85c725421388128377d080e0fc1fb8e209b4c (diff) | |
download | bdwgc-97cca6230ff1a1b6057188ae3e16a2f2d2f6d0c5.tar.gz |
Replace WARN in GC_mark_some wrapper back to GC_COND_LOG_PRINTF
Issue #454 (bdwgc).
* mark.c [WRAP_MARK_SOME] (GC_mark_some): Use GC_COND_LOG_PRINTF()
instead of WARN() to report caught ACCESS_VIOLATION; refine comment;
add the GC number to the message reported by GC_COND_LOG_PRINTF.
Diffstat (limited to 'mark.c')
-rw-r--r-- | mark.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -482,10 +482,10 @@ static void push_roots_and_advance(GC_bool push_all, ptr_t cold_gc_frame) { static word warned_gc_no; - /* Warn about it at most once per collection. */ + /* Report caught ACCESS_VIOLATION, once per collection. */ if (warned_gc_no != GC_gc_no) { - WARN("Caught ACCESS_VIOLATION in marker;" - " memory mapping disappeared\n", 0); + GC_COND_LOG_PRINTF("Memory mapping disappeared at collection #%lu\n", + (unsigned long)GC_gc_no + 1); warned_gc_no = GC_gc_no; } } |