aboutsummaryrefslogtreecommitdiff
path: root/src/rt
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-08-17 23:30:10 -0700
committerMichael Bebenita <[email protected]>2010-08-17 23:49:57 -0700
commit9fa2b53d8c41cd717ed470926a746bdbff98dc35 (patch)
tree448b2c0dbe92f39c5417885712b123af304f152b /src/rt
parentAdded labels to blocking conditions. (diff)
downloadrust-9fa2b53d8c41cd717ed470926a746bdbff98dc35.tar.xz
rust-9fa2b53d8c41cd717ed470926a746bdbff98dc35.zip
Add a "special" rust_log flag to be used for debugging in cases where the full log output prevents races from occurring.
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_log.cpp1
-rw-r--r--src/rt/rust_log.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp
index c2a1bbe3..e72a62fa 100644
--- a/src/rt/rust_log.cpp
+++ b/src/rt/rust_log.cpp
@@ -27,6 +27,7 @@ read_type_bit_mask() {
bits |= strstr(env_str, "timer") ? rust_log::TIMER : 0;
bits |= strstr(env_str, "gc") ? rust_log::GC : 0;
bits |= strstr(env_str, "stdlib") ? rust_log::STDLIB : 0;
+ bits |= strstr(env_str, "special") ? rust_log::SPECIAL : 0;
bits |= strstr(env_str, "all") ? rust_log::ALL : 0;
bits = strstr(env_str, "none") ? 0 : bits;
}
diff --git a/src/rt/rust_log.h b/src/rt/rust_log.h
index 58b36f8d..5155cb48 100644
--- a/src/rt/rust_log.h
+++ b/src/rt/rust_log.h
@@ -42,6 +42,7 @@ public:
TIMER = 0x400,
GC = 0x800,
STDLIB = 0x1000,
+ SPECIAL = 0x2000,
ALL = 0xffffffff
};