Skip to content
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

Restore missing commit from mnemos-alloc repo. #55

Merged
merged 1 commit into from
Jun 4, 2023
Merged

Conversation

jamesmunns
Copy link
Contributor

This commit was missed when I merged from the upstream repo:

tosc-rs/mnemos-alloc#9

commit 3b1b16d7c04f312a27befb1f1f7691f5f63cfb47
Author: Eliza Weisman eliza@buoyant.io
Date: Thu Jun 1 08:15:12 2023 -0700

add missing Send impl for AHeap (#9)

Currently, any Future that awaits one of the AHeap allocate,
allocate_arc, allocate_array_with, or allocate_fixed_vec methods
is !Send. This is because these methods return a Future which
contains a &self receiver, and the AHeap type itself is !Send.
This is sad and not very great.

This branch adds a missing Send impl to AHeap. This should be safe
for the same reason that the existing unsafe impl Sync for AHeap is
safe.

  • add test asserting heap futures are Send
  • add missing Send impl for AHeap

This commit was missed when I merged from the upstream
repo:

commit 3b1b16d7c04f312a27befb1f1f7691f5f63cfb47
Author: Eliza Weisman <eliza@buoyant.io>
Date:   Thu Jun 1 08:15:12 2023 -0700

  add missing `Send` impl for `AHeap` (#9)

  Currently, any Future that awaits one of the AHeap allocate,
  allocate_arc, allocate_array_with, or allocate_fixed_vec methods
  is !Send. This is because these methods return a Future which
  contains a &self receiver, and the AHeap type itself is !Send.
  This is sad and not very great.

  This branch adds a missing Send impl to AHeap. This should be safe
  for the same reason that the existing unsafe impl Sync for AHeap is
  safe.

  * add test asserting heap futures are Send
  * add missing Send impl for AHeap
@netlify
Copy link

netlify bot commented Jun 4, 2023

Deploy Preview for merry-scone-cc7a60 ready!

Name Link
🔨 Latest commit c7b84eb
🔍 Latest deploy log https://app.netlify.com/sites/merry-scone-cc7a60/deploys/647bef5b95fbef0008ff9132
😎 Deploy Preview https://deploy-preview-55--merry-scone-cc7a60.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

shipit

@jamesmunns jamesmunns merged commit 2ab588b into main Jun 4, 2023
8 checks passed
@jamesmunns jamesmunns deleted the james/oops-alloc branch June 4, 2023 01:59
@jamesmunns jamesmunns added the area: kernel Related to the cross-platform kernel label Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: kernel Related to the cross-platform kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants