-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mimalloc, enable for glibc Linux aarch64, explicitly disable f…
…or wasm and musl (vercel/turborepo#8462) # Description - **Update mimalloc** dependency. - **Enable mimalloc for Linux on aarch64 with glibc:** it seems to work just fine! - **Disable mimalloc for wasm and musl.** Mimalloc is already disabled for these platforms in next-swc, but I want to centralize these platform checks: https://github.com/vercel/next.js/blob/73918c6711b538678dd66303fdbd61bfd10b288c/packages/next-swc/crates/napi/src/lib.rs#L71 - **Reduce duplicate code across platforms.** The two implementations of `TurboMalloc` were identical, aside from the base allocator used. Move the compile-time branch into an inlined function. **Related Next.JS PR:** #66815 # Testing ## On glibc Linux aarch64 ``` pnpm pack-next ``` Install into a test project and try running the development server. ## Other platforms I have not tested other platforms, and will rely on CI for those (here and in #66815)
- Loading branch information
Showing
2 changed files
with
22 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters