Skip to content

Add OpenHarmony platform identity and exclude unsupported NUMA calls - #134670

Merged
jkotas merged 1 commit into
dotnet:mainfrom
springmin:pr/ohos-platform-numa
Sep 26, 2026
Merged

jkotas merged 1 commit into
dotnet:mainfrom
springmin:pr/ohos-platform-numa

Conversation

@springmin

Copy link
Copy Markdown
Contributor

Split out from #132827 per @jkotas' request — these are the changes that are not related to the shared-memory / named-mutex work, so they can land independently.

  • OperatingSystem: report OPENHARMONY from OSPlatformName and add internal IsOpenHarmony().
  • System.Private.CoreLib.Shared.projitems: define TARGET_OPENHARMONY when TargetsOpenHarmony is true (the MSBuild property is added by Add OpenHarmony/HarmonyOS build infrastructure #132953).
  • numasupport: compile out the get_mempolicy/mbind NUMA paths on OpenHarmony, where the syscalls are unavailable (same treatment as Android).

The remaining parts of #132827 (SharedMemoryManager.Unix.cs, NamedMutex.Unix.cs, MutexTests.cs) will wait for @jkoritzinsky's shared-memory design changes.

Split out from dotnet#132827 (per review) so these changes can land independently
of the shared-memory / named-mutex work.

- OperatingSystem: report OPENHARMONY and add internal IsOpenHarmony()
- System.Private.CoreLib.Shared.projitems: define TARGET_OPENHARMONY when
  TargetsOpenHarmony is set (the MSBuild property comes with dotnet#132953)
- numasupport: compile out the get_mempolicy/mbind paths on OpenHarmony,
  where the syscalls are unavailable (same treatment as Android)
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Sep 25, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime
See info in area-owners.md if you want to be subscribed.

@jkotas
jkotas merged commit 7408c77 into dotnet:main Sep 26, 2026
155 of 157 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 27, 2026
springmin added a commit to springmin/runtime-ohos that referenced this pull request Sep 28, 2026
- merge-tree 39/39 clean; rebase rehearsal 20/21 clean (19 semantic SAME;
  platform-numa EMPTY = duplicate of merged dotnet#134670); only tls-flag-cleanup
  conflicts and stays dropped (absorbed by infra 8ef4e92)
- playbook: replace the pre-rehearsal 17-branch order with the determined
  order + per-branch prerequisites; record upstream tip and rehearsal time
- new rehearsal page: docs/plans/2026-09-28-ohos-upstream-rebase-rehearsal.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Runtime community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants