Skip to content

Commit 6806900

Browse files
committed
disable lang debug for perf
1 parent 989d008 commit 6806900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/unstable/lang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub unsafe fn exchange_malloc(td: *c_char, size: uintptr_t) -> *c_char {
152152

153153
/// Because this code is so perf. sensitive, use a static constant so that
154154
/// debug printouts are compiled out most of the time.
155-
static ENABLE_DEBUG: bool = true;
155+
static ENABLE_DEBUG: bool = false;
156156

157157
#[inline]
158158
pub fn debug_mem<T>(tag: &'static str, p: *const T) {

0 commit comments

Comments
 (0)