Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Aug 15, 2025

Linter previously tracked whether an Allocator's memory is shared between Rust and JS with an AtomicBool flag.

Replace this flag with an AtomicU32 reference counter. This prepares the way for sharing the memory owned by a FixedSizeAllocator with multiple JS threads, and tracking when it's been released by all JS threads, and Rust.

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Aug 15, 2025
Copy link
Member Author

overlookmotel commented Aug 15, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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-hq
Copy link

codspeed-hq bot commented Aug 15, 2025

CodSpeed Instrumentation Performance Report

Merging #13135 will not alter performance

Comparing 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ (deacd22) with main (8b1e022)

Summary

✅ 34 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 08-15-feat_allocator_add_data_end_ptr_and_set_cursor_ptr_methods_to_allocator_ branch from 11cb71b to ab90104 Compare August 15, 2025 23:53
@overlookmotel overlookmotel force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch 2 times, most recently from 95015b0 to fce48b1 Compare August 16, 2025 00:12
@overlookmotel overlookmotel force-pushed the 08-15-feat_allocator_add_data_end_ptr_and_set_cursor_ptr_methods_to_allocator_ branch from ab90104 to 81db99e Compare August 16, 2025 00:12
@graphite-app graphite-app bot force-pushed the 08-15-feat_allocator_add_data_end_ptr_and_set_cursor_ptr_methods_to_allocator_ branch 2 times, most recently from 7e6db63 to 5bd7d9e Compare August 16, 2025 12:02
@graphite-app graphite-app bot force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch from fce48b1 to 23f238c Compare August 16, 2025 12:02
@graphite-app graphite-app bot changed the base branch from 08-15-feat_allocator_add_data_end_ptr_and_set_cursor_ptr_methods_to_allocator_ to graphite-base/13135 August 16, 2025 12:13
@graphite-app graphite-app bot force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch from 23f238c to 5f31d1c Compare August 16, 2025 12:18
@graphite-app graphite-app bot force-pushed the graphite-base/13135 branch from 5bd7d9e to 7cf6186 Compare August 16, 2025 12:18
@graphite-app graphite-app bot changed the base branch from graphite-base/13135 to main August 16, 2025 12:19
@graphite-app graphite-app bot force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch from 5f31d1c to 6121c3e Compare August 16, 2025 12:19
@overlookmotel overlookmotel changed the base branch from main to graphite-base/13135 August 16, 2025 18:10
@overlookmotel overlookmotel force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch from 6121c3e to 802044e Compare August 16, 2025 18:10
@overlookmotel overlookmotel changed the base branch from graphite-base/13135 to 08-16-docs_allocator_correct_and_expand_safety_comments_on_allocator_methods August 16, 2025 18:10
@graphite-app graphite-app bot changed the base branch from 08-16-docs_allocator_correct_and_expand_safety_comments_on_allocator_methods to graphite-base/13135 August 17, 2025 13:24
@graphite-app graphite-app bot force-pushed the graphite-base/13135 branch from 1900b28 to 33ce529 Compare August 17, 2025 13:29
@graphite-app graphite-app bot force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch from 802044e to 7358a6c Compare August 17, 2025 13:29
@graphite-app graphite-app bot changed the base branch from graphite-base/13135 to main August 17, 2025 13:30
@graphite-app graphite-app bot force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch from 7358a6c to 694f870 Compare August 17, 2025 13:30
@overlookmotel overlookmotel force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch from 694f870 to 0777540 Compare August 19, 2025 21:38
@overlookmotel overlookmotel force-pushed the 08-14-refactor_allocator_linter_add_ref_counter_to_fixedsizeallocator_ branch from 0777540 to deacd22 Compare August 20, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants