Skip to content

Conversation

@kouvel
Copy link
Contributor

@kouvel kouvel commented Dec 14, 2021

  • The page size is different between arm64 processes and emulated x64 processes
  • The shared memory file size is set to the page size and there was a strict check on the file size, leading to an exception from the second process of a different arch that tries to share the same mutex
  • Made the file size check less strict, and allowed an arch to increase but not decrease the file size such that it can be mapped at page size granularity
  • Fix for Inter-process Mutex doesn't work for processes of different architectures on Apple Silicon #62140 in main

…sses

- The page size is different between arm64 processes and emulated x64 processes
- The shared memory file size is set to the page size and there was a strict check on the file size, leading to an exception from the second process of a different arch that tries to share the same mutex
- Made the file size check less strict, and allowed an arch to increase but not decrease the file size such that it can be mapped at page size granularity
- Fix for #62140 in main
@kouvel kouvel added this to the 7.0.0 milestone Dec 14, 2021
@kouvel kouvel self-assigned this Dec 14, 2021
@ghost
Copy link

ghost commented Dec 14, 2021

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

Issue Details
  • The page size is different between arm64 processes and emulated x64 processes
  • The shared memory file size is set to the page size and there was a strict check on the file size, leading to an exception from the second process of a different arch that tries to share the same mutex
  • Made the file size check less strict, and allowed an arch to increase but not decrease the file size such that it can be mapped at page size granularity
  • Fix for Inter-process Mutex doesn't work for processes of different architectures on Apple Silicon #62140 in main
Author: kouvel
Assignees: kouvel
Labels:

area-System.Threading

Milestone: 7.0.0

@kouvel kouvel merged commit 4312756 into dotnet:main Dec 14, 2021
@kouvel kouvel deleted the MutexFix branch December 14, 2021 19:32
@ghost ghost locked as resolved and limited conversation to collaborators Jan 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants