Skip to content

Commit c1c2c92

Browse files
bors[bot]matklad
andauthored
9229: minor: squelch "unused" warning r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 409f5fb + 787d980 commit c1c2c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/profile/src/memory_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl MemoryUsage {
5656
}
5757
}
5858

59-
#[cfg(all(target_os = "linux", target_env = "gnu"))]
59+
#[cfg(all(target_os = "linux", target_env = "gnu", not(feature = "jemalloc")))]
6060
fn memusage_linux() -> MemoryUsage {
6161
// Linux/glibc has 2 APIs for allocator introspection that we can use: mallinfo and mallinfo2.
6262
// mallinfo uses `int` fields and cannot handle memory usage exceeding 2 GB.

0 commit comments

Comments
 (0)