about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-27 19:53:03 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-28 10:46:12 -0800
commitd5aa795aa5f316bc5f43508df5bc41cba0a61ea8 (patch)
tree7f249584ed7618932165c489a885c22f5a7b6a7f /src/libstd/rt
parentf01a9a8d02f6c09b89a3cecadaa5b62073381180 (diff)
downloadrust-d5aa795aa5f316bc5f43508df5bc41cba0a61ea8.tar.gz
rust-d5aa795aa5f316bc5f43508df5bc41cba0a61ea8.zip
std: Add cfg(test) to UnsafeArc assertions
This is a ubiquitous type in concurrent code, and the assertions are causing
significant code bloat for simple operations such as reading the pointer
(injecting a failure point, etc).

I am testing executable sizes with no I/O implementations (everything stubbed
out to return nothing), and this took the size of a libnative executable from
328K to 207K (37% reduction in size), so I think that this is one assertion
that's well worth configuring off for now.
Diffstat (limited to 'src/libstd/rt')
0 files changed, 0 insertions, 0 deletions