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

[Concurrency] Remove C++ runtime references from embedded Concurrency. #76870

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Oct 4, 2024

In embedded mode, we mustn't have references to the C++ library, because some embedded platforms don't include the C++ library.

Additionally, it's good to avoid use of global operator new and operator delete, because they can be globally overridden and this has bitten us in the past.

rdar://137286187

In embedded mode, we mustn't have references to the C++ library, because
some embedded platforms don't include the C++ library.

Additionally, it's good to avoid use of global operator new and operator
delete, because they can be globally overridden and this has bitten us
in the past.

rdar://137286187
@al45tair
Copy link
Contributor Author

al45tair commented Oct 4, 2024

@swift-ci Please smoke test

@al45tair al45tair requested a review from mikeash October 4, 2024 16:17
Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

A couple minor requests, but otherwise LGTM

#if !SWIFT_CONCURRENCY_EMBEDDED
status.to_string(group).c_str()
#else
"<unavailable in embedded>"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"<unavailable in embedded>"
"<status unavailable in embedded>"

@@ -822,6 +844,8 @@ class AccumulatingTaskGroup: public TaskGroupBase {
class DiscardingTaskGroup: public TaskGroupBase {
friend class ::swift::AsyncTask;

private:

Copy link
Contributor

Choose a reason for hiding this comment

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

Spurious

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants