Skip to content

Update DBG_MAX_EXECUTABLE_ALLOC_SIZE and EXPECTED_CHUNKSIZE #117843

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

Conversation

tommcdon
Copy link
Member

@tommcdon tommcdon commented Jul 19, 2025

Recent change to SharedPatchBypassBuffer caused allocation failures in the debugger, leading to linux debugging to fail. This change increases the buffer sizes to allow for the increased size to SharedPatchBypassBuffer

@tommcdon tommcdon added this to the 10.0.0 milestone Jul 19, 2025
@tommcdon tommcdon requested a review from noahfalk July 19, 2025 00:01
@Copilot Copilot AI review requested due to automatic review settings July 19, 2025 00:01
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 PR addresses allocation failures in the Linux debugger caused by recent changes to SharedPatchBypassBuffer. The fix increases debugger memory allocation constants to accommodate the larger buffer size requirements.

Key Changes

  • Increases DBG_MAX_EXECUTABLE_ALLOC_SIZE from 112 to 120 bytes to match the size of SharedPatchBypassBuffer
  • Doubles EXPECTED_CHUNKSIZE from 128 to 256 bytes to provide adequate space for the larger allocation size plus metadata overhead

Copy link
Contributor

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

Co-authored-by: Copilot <[email protected]>
@steveisok steveisok self-requested a review July 19, 2025 00:10
@tommcdon
Copy link
Member Author

/ba-g failures are unrelated

@tommcdon tommcdon merged commit 5107b8f into dotnet:main Jul 19, 2025
93 of 96 checks passed
tommcdon added a commit to tommcdon/runtime that referenced this pull request Jul 22, 2025
…17843)

* Update DBG_MAX_EXECUTABLE_ALLOC_SIZE and EXPECTED_CHUNKSIZE to account recent SharedPatchBypassBuffer changes

* Comment-only update

Co-authored-by: Copilot <[email protected]>

* Improve EXPECTED_CHUNKSIZE comment

---------

Co-authored-by: Copilot <[email protected]>
jeffschwMSFT added a commit that referenced this pull request Jul 23, 2025
…#117912)

* Update DBG_MAX_EXECUTABLE_ALLOC_SIZE and EXPECTED_CHUNKSIZE to account recent SharedPatchBypassBuffer changes

* Comment-only update



* Improve EXPECTED_CHUNKSIZE comment

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Jeff Schwartz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants