Skip to content

impl: mmap arena allocator#337

Draft
arkjedrz wants to merge 1 commit into
eclipse-score:mainfrom
qorix-group:arkjedrz_mmap-alloc
Draft

impl: mmap arena allocator#337
arkjedrz wants to merge 1 commit into
eclipse-score:mainfrom
qorix-group:arkjedrz_mmap-alloc

Conversation

@arkjedrz

@arkjedrz arkjedrz commented Jul 3, 2026

Copy link
Copy Markdown
Contributor
  • Basic mmap-backed arena allocator.
  • Extended pal with mmap-related features.
  • Made AllocationError comparable.

- Basic `mmap`-backed arena allocator.
- Extended `pal` with `mmap`-related features.
- Made `AllocationError` comparable.
@arkjedrz arkjedrz force-pushed the arkjedrz_mmap-alloc branch from 41965bc to 1a32a63 Compare July 3, 2026 07:37
@arkjedrz arkjedrz requested a deployment to workflow-approval July 3, 2026 07:37 — with GitHub Actions Waiting
@arkjedrz arkjedrz requested a deployment to workflow-approval July 3, 2026 07:37 — with GitHub Actions Waiting
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

}
}

impl ScoreDebug for MemoryRegion {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?

///
/// Allocated chunks are from a continuous chunk of memory obtained using mmap.
/// Deallocation is not supported.
#[derive(Debug)]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace with implementation aligned with ScoreDebug?

}

unsafe fn deallocate(&self, _ptr: NonNull<u8>, _layout: Layout) {
panic!("deallocation is not supported");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must be no-op.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant