-
-
Notifications
You must be signed in to change notification settings - Fork 723
fix(allocator): fix FixedSizeAllocator pointer maths
#12299
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
fix(allocator): fix FixedSizeAllocator pointer maths
#12299
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #12299 will not alter performanceComparing Summary
|
Merge activity
|
Fix a bug with calculating pointer to start of `Allocator` which crept in when buffer size changed in #12277.
3662c88 to
13c5783
Compare
Follow-on after #12299. Document better the logic around alignment of allocator chunk pointer. It's pretty confusing, and I made a mistake here before. Clarify the logic.
The bug fixed in #12299 went unnoticed originally because we build the `napi/oxlint2` crate for tests in release mode, with debug assertions disabled. Instead, build with `--profile coverage` which enables debug assertions. It's also faster to compile.

Fix a bug with calculating pointer to start of
Allocatorwhich crept in when buffer size changed in #12277.