Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DRAFT] try enabling regions on Mac again #115251

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mangod9
Copy link
Member

@mangod9 mangod9 commented May 2, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 2, 2025 19:52
@mangod9 mangod9 marked this pull request as draft May 2, 2025 19:52
@mangod9 mangod9 added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label May 2, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request attempts to re-enable regions on Mac by modifying the preprocessor condition.

  • Removed the APPLE exclusion from the condition for defining USE_REGIONS
  • Adjusted the code responsible for enabling regions on 64-bit systems

@@ -144,7 +144,7 @@ inline void FATAL_GC_ERROR()
// For SunOS or illumos this is temporary, until we can add MAP_PRIVATE
// to the mmap() calls in unix/gcenv.unix.cpp More details here:
// https://github.com/dotnet/runtime/issues/104211
#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) && !defined(__APPLE__) && !defined(__sun)
#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) && !defined(__sun)
Copy link
Preview

Copilot AI May 2, 2025

Choose a reason for hiding this comment

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

The preprocessor condition no longer excludes APPLE, but the comment above still mentions APPLE. Please update the comment to accurately reflect that regions are now enabled on Mac.

Copilot uses AI. Check for mistakes.

Copy link
Contributor

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

@jkotas
Copy link
Member

jkotas commented May 2, 2025

It is ok to try and the CI may even pass if the run does not happen to generate crash dump along the way. We need a positive confirmation that enabling regions GC won't kill post-mortem diagnostic on mac. Have we done anything to resolve the problem with prohibitively large crash dumps on mac?

@mangod9
Copy link
Member Author

mangod9 commented May 2, 2025

the last time we looked we werent able to repro the large dumps locally. Believe @janvorli had tried it too, given lower priority we never investigated it completely. Hoping we get to root cause this time around.

@mangod9
Copy link
Member Author

mangod9 commented May 7, 2025

I have validated that with large memory reservation size with regions the dump generated on MacOS is about 100mb larger (so it's only about 2% more) -- not order of magnitude larger we thought it would be. Need to figure out failures in iOS/tvOS NativeAOT failures before we can enable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-GC-coreclr NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants