-
-
Notifications
You must be signed in to change notification settings - Fork 2
fix: disable mimalloc on linux with aarch64 #69
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR disables mimalloc on Linux with aarch64 to address issues reported in #64.
- Updated the conditional compilation attribute in napi/src/lib.rs to exclude Linux aarch64 from using mimalloc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! π
Reviewed everything up to cf496e2 in 30 seconds. Click for details.
- Reviewed
15
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
draft 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 Illegal instruction error - Raspberry PI 4 aarch64Β #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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! π
Reviewed 10f555d in 24 seconds. Click for details.
- Reviewed
16
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
draft 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 Illegal instruction error - Raspberry PI 4 aarch64Β #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
mimalloc
on Linux withaarch64
innapi/src/lib.rs
due to allocator issues.mimalloc
on Linux withaarch64
architecture innapi/src/lib.rs
due 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