mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
perf: use jemalloc as global allocator (#18957)
Follow up to https://github.com/denoland/deno/pull/18875 that enables `jemalloc` as a global allocator for the Deno CLI.
This commit is contained in:
parent
adcda4fa64
commit
798c1ad0f1
8 changed files with 42 additions and 11 deletions
|
@ -24,7 +24,8 @@ fn napi_create_async_work(
|
|||
execute,
|
||||
complete,
|
||||
};
|
||||
*result = transmute::<Box<AsyncWork>, _>(Box::new(work));
|
||||
let work_box = Box::new(work);
|
||||
*result = transmute::<*mut AsyncWork, _>(Box::into_raw(work_box));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue