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

Proxy exceptions defined in Pipeline scripts #102

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

dwnusbaum
Copy link
Member

An investigation into a memory leak revealed that if classes defined in a Pipeline script are serialized by XStream, XStream holds a reference to the class and thus its class loader, which prevents the class loader from being garbage collected. One way this can happen is if the Pipeline throws a user-defined exception. To avoid the problem in that case, we proxy these exceptions so that they do not reference the original class.

@dwnusbaum dwnusbaum requested review from abayer and jglick August 28, 2019 20:49
@dwnusbaum dwnusbaum merged commit f12d47b into jenkinsci:master Aug 29, 2019
@dwnusbaum dwnusbaum deleted the user-defined-exceptions branch August 29, 2019 14:41
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.

None yet

2 participants