Skip to content

Commit 040b75b

Browse files
kixelatedclaude
andauthored
fix: pass null pointer for jemalloc prof.dump (#1227)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2c74917 commit 040b75b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rs/moq-relay/src/jemalloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ pub async fn run() -> anyhow::Result<()> {
2525
loop {
2626
sig.recv().await;
2727

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) } {
28+
// Null pointer tells jemalloc to use prof_prefix from MALLOC_CONF.
29+
match unsafe { raw::write(b"prof.dump\0", std::ptr::null::<u8>()) } {
3030
Ok(()) => tracing::info!("heap profile dumped"),
3131
Err(err) => tracing::error!(%err, "failed to dump heap profile"),
3232
}

0 commit comments

Comments
 (0)