Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mimalloc, enable for glibc Linux aarch64, explicitly disable for wasm and musl #8462

Merged
merged 2 commits into from
Jun 14, 2024

Commits on Jun 14, 2024

  1. Update mimalloc, enable for glibc Linux aarch64, explicitly disable f…

    …or wasm and musl
    
    - mimalloc seems to work just fine with Linux on aarch64 with glibc
    - This is already disabled for wasm and musl 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
    bgw committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    7005728 View commit details
    Browse the repository at this point in the history
  2. Reduce duplicate code across implementations of TurboMalloc

    The two implementations were identical, aside from the allocator used.
    Move the compile-time branch into an inlined function.
    bgw committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    cf91231 View commit details
    Browse the repository at this point in the history