Skip to content

Update DBG_MAX_EXECUTABLE_ALLOC_SIZE and EXPECTED_CHUNKSIZE - #117843

Merged
tommcdon merged 3 commits into
dotnet:mainfrom
tommcdon:dev/tommcdon/fix_shared_bypass_buffer_size_values
Jul 19, 2025
Merged

tommcdon merged 3 commits into
dotnet:mainfrom
tommcdon:dev/tommcdon/fix_shared_bypass_buffer_size_values

Conversation

@tommcdon

@tommcdon tommcdon commented Jul 19, 2025 •

Copy link
Copy Markdown
Member

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 AI review requested due to automatic review settings July 19, 2025 00:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread src/coreclr/debug/ee/debugger.h Outdated
Comment thread src/coreclr/debug/ee/debugger.h Outdated
@dotnet-policy-service

Copy link
Copy Markdown
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 <175728472+Copilot@users.noreply.github.com>
@steveisok
steveisok self-requested a review July 19, 2025 00:10
Comment thread src/coreclr/debug/ee/debugger.h Outdated
@tommcdon

Copy link
Copy Markdown
Member Author

/ba-g failures are unrelated

@tommcdon
tommcdon merged commit 5107b8f into dotnet:main Jul 19, 2025
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 <175728472+Copilot@users.noreply.github.com>

* Improve EXPECTED_CHUNKSIZE comment

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jeff Schwartz <jeffschw@microsoft.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 19, 2025
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.

4 participants