about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-11-20 15:55:31 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-11-20 16:22:17 +0100
commit43e32b53462e139c560672102724e8a8c859dbf7 (patch)
tree8f479dcb0c5c9a16667004802473f0318197e995 /src/liballoc_jemalloc
parent2dd268b652cb42f4ebaa145c9e50cc6509c47d26 (diff)
downloadrust-43e32b53462e139c560672102724e8a8c859dbf7.tar.gz
rust-43e32b53462e139c560672102724e8a8c859dbf7.zip
Remove comment about a branch being optimized out, fix #45831
Most often, this code is used through the `std::heap::Heap`
and `#[gloabal_allocator]` indirection, so this branch is not
optimized out anymore.
Diffstat (limited to 'src/liballoc_jemalloc')
-rw-r--r--src/liballoc_jemalloc/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc_jemalloc/lib.rs b/src/liballoc_jemalloc/lib.rs
index e8a844228ba..d7370ae400d 100644
--- a/src/liballoc_jemalloc/lib.rs
+++ b/src/liballoc_jemalloc/lib.rs
@@ -72,8 +72,7 @@ mod contents {
     const MALLOCX_ZERO: c_int = 0x40;
 
     // The minimum alignment guaranteed by the architecture. This value is used to
-    // add fast paths for low alignment values. In practice, the alignment is a
-    // constant at the call site and the branch will be optimized out.
+    // add fast paths for low alignment values.
     #[cfg(all(any(target_arch = "arm",
                   target_arch = "mips",
                   target_arch = "powerpc")))]