Skip to content

(0.44) Do not throw in ClassLoaderTable #19146

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

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

cjjdespres
Copy link
Contributor

In copyJ9UTF8(), we now avoid throwing std::bad_alloc() if memory for a copy of a ROM class's name could not be allocated. We instead do not add the TR_ClassLoaderInfo into the _nameTable in such situations. This parallels the treatment of the class loader info if a chain for the loader could not be found in the SCC.

Related: #18990

In copyJ9UTF8(), we now avoid throwing std::bad_alloc() if memory for a
copy of a ROM class's name could not be allocated. We instead do not
add the TR_ClassLoaderInfo into the _nameTable in such situations. This
parallels the treatment of the class loader info if a chain for the
loader could not be found in the SCC.

Signed-off-by: Christian Despres <[email protected]>
@cjjdespres cjjdespres requested a review from dsouzai as a code owner March 14, 2024 16:11
@cjjdespres
Copy link
Contributor Author

This is a cherry-pick of 77dafda from PR #19071, fixing an uncaught exception that can be thrown from the persistent class loader table.

Attn @mpirvu.

@mpirvu mpirvu self-assigned this Mar 14, 2024
@mpirvu mpirvu added the comp:jitserver Artifacts related to JIT-as-a-Service project label Mar 14, 2024
Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

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

LGTM

@mpirvu mpirvu merged commit 3d8a0bb into eclipse-openj9:v0.44.0-release Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants