Skip to content
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

Use processIsolation for SigstoreSignFilesTask to avoid OutOfMemory: MetaSpace #283

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

vlsi
Copy link
Collaborator

@vlsi vlsi commented Jan 11, 2023

Summary

See bcgit/bc-java#1254

BouncyCastle creates BC Entropy Daemon thread that prevents class unloading.
So we can't really use classloader isolation in Gradle plugin.

process isolation solves the issue for Gradle plugin, however, the ones who use sigstore-java will have to implement similar workarounds or prevent loading sigstore-java from multiple classloaders.

Release Note

NONE

Documentation

NONE

…MetaSpace

see gradle/gradle#18313

Signed-off-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
@vlsi vlsi marked this pull request as ready for review January 12, 2023 09:13
Copy link
Collaborator

@patflynn patflynn left a comment

Choose a reason for hiding this comment

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

nice find. Hopefully they'll fix this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants