We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c74917 commit 040b75bCopy full SHA for 040b75b
1 file changed
rs/moq-relay/src/jemalloc.rs
@@ -25,8 +25,8 @@ pub async fn run() -> anyhow::Result<()> {
25
loop {
26
sig.recv().await;
27
28
- // Empty path tells jemalloc to use prof_prefix from MALLOC_CONF.
29
- match unsafe { raw::write(b"prof.dump\0", b"\0" as *const u8) } {
+ // Null pointer tells jemalloc to use prof_prefix from MALLOC_CONF.
+ match unsafe { raw::write(b"prof.dump\0", std::ptr::null::<u8>()) } {
30
Ok(()) => tracing::info!("heap profile dumped"),
31
Err(err) => tracing::error!(%err, "failed to dump heap profile"),
32
}
0 commit comments