* src/vm/jit/trap.cpp (trap_handle): Suppress PR85 warning by default.
authorStefan Ring <stefan@complang.tuwien.ac.at>
Tue, 30 Jun 2009 14:44:11 +0000 (16:44 +0200)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Tue, 30 Jun 2009 14:44:11 +0000 (16:44 +0200)
src/vm/jit/trap.cpp

index 3f95aaa90909159728f7a127770d60a3037940f4..0e2ce164ec58b278bfe982e681d033b702ff8367 100644 (file)
@@ -162,8 +162,8 @@ void trap_handle(int sig, void *xpc, void *context)
                // NOTE: Some archs use SIGILL for other traps too, but it's OK to
                // do this check anyway because it will fail.
                if (patcher_is_patched_at(xpc) == true) {
-                       // XXX remove this debug output!
-                       log_println("trap_handle: Detected patcher race condition (PR85) at %p", xpc);
+                       if (opt_PrintWarnings)
+                               log_println("trap_handle: Detected patcher race condition (PR85) at %p", xpc);
                        return;
                }
 
@@ -380,4 +380,5 @@ void trap_handle(int sig, void *xpc, void *context)
  * c-basic-offset: 4
  * tab-width: 4
  * End:
+ * vim:noexpandtab:sw=4:ts=4:
  */