fix: disable mimalloc on linux with aarch64#69
Conversation
WalkthroughThe change updates the global memory allocator configuration in the Changes
Sequence Diagram(s)sequenceDiagram
participant Build
participant AllocatorConfig
participant MiMalloc
Build->>AllocatorConfig: Compile napi/src/lib.rs
AllocatorConfig->>AllocatorConfig: Check target architecture and OS
alt Not ARM/FreeBSD/WASM/Linux aarch64
AllocatorConfig->>MiMalloc: Set MiMalloc as global allocator
else
AllocatorConfig->>AllocatorConfig: Use default allocator
end
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to cf496e2 in 30 seconds. Click for details.
- Reviewed
15lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. napi/src/lib.rs:5
- Draft comment:
Consider adding an inline comment explaining why mimalloc is disabled for Linux AArch64 (e.g., Raspberry PI incompatibility) to aid future maintainability. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
2. napi/src/lib.rs:1
- Draft comment:
Good fix. Consider adding an inline comment explaining that mimalloc is disabled on Linux aarch64 (per issue #64) to aid future maintainers. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
Workflow ID: wflow_KDUI4jn79C42eJY0
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
napi/src/lib.rs(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Test (windows-latest)
cf496e2 to
10f555d
Compare
|
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed 10f555d in 24 seconds. Click for details.
- Reviewed
16lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. napi/src/lib.rs:2
- Draft comment:
The cfg condition correctly disables mimalloc on ARM, FreeBSD, WASM, and Linux/aarch64 as intended in #64. No issues detected. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
2. napi/src/lib.rs:1
- Draft comment:
The new cfg condition correctly disables mimalloc on Linux/aarch64. Ensure tests cover this target. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
Workflow ID: wflow_bUgtT2qvmYKukHts
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.



close #64
close import-js/eslint-import-resolver-typescript#406
Important
Disable
mimallocon Linux withaarch64innapi/src/lib.rsdue to allocator issues.mimallocon Linux withaarch64architecture innapi/src/lib.rsdue to allocator issues (see Illegal instruction error - Raspberry PI 4 aarch64 #64).This description was created by
for 10f555d. You can customize this summary. It will automatically update as commits are pushed.
Summary by CodeRabbit