Skip to content

Update OutOfMemoryException message - #74374

Closed
eduardo-vp wants to merge 3 commits into
dotnet:mainfrom
eduardo-vp:update/OOM-message
Closed

eduardo-vp wants to merge 3 commits into
dotnet:mainfrom
eduardo-vp:update/OOM-message

Conversation

@eduardo-vp

@eduardo-vp eduardo-vp commented Aug 22, 2022 •

Copy link
Copy Markdown
Member

Fixes #71761 and #55964

@ghost

ghost commented Aug 22, 2022

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost assigned eduardo-vp Aug 22, 2022
Comment thread src/coreclr/inc/ex.h Resolved
Co-authored-by: Dan Moseley <[email protected]>
@danmoseley

Copy link
Copy Markdown
Contributor

@jkotas any position on the message?

@jkotas

jkotas commented Aug 22, 2022

Copy link
Copy Markdown
Member

If there are places where we are throwing OutOfMemoryException in situations that are not actually out-of-memory, we should fix those places. We have done that already for multiple of them. For example, look for: Internal limitation: attempt to create more than 2^26 SyncBlocks. or Insufficient memory within specified address space range to continue the execution of the program..

I do not think we should be modifying the default message for OutOfMemoryException. It does not help with diagnosing the problems that are not actual out of memory exceptions.

@danmoseley

danmoseley commented Aug 22, 2022 •

Copy link
Copy Markdown
Contributor

Yea even better. Custom messages, but same exception type.
Here's a link to one of those mentioned

EX_THROW(EEMessageException, (kOutOfMemoryException, IDS_EE_OUT_OF_SYNCBLOCKS));

@eduardo-vp You may need to reproduce a particular case locally in order to confidently fix its message. We can do a few or just one at a time.

@ghost ghost closed this Sep 22, 2022
@ghost

ghost commented Sep 22, 2022

Copy link
Copy Markdown

Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 22, 2022
This pull request was closed.
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.

Failing to create a thread shouldn't assume that this an out of memory issue

3 participants