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

Call GroovyClassLoader.close when build completes #667

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

jglick
Copy link
Member

@jglick jglick commented Mar 2, 2023

When considering loading libraries from JAR files in jenkinsci/pipeline-groovy-lib-plugin#55 it occurred to me that a completed build might leave classpath JAR files open at least until garbage collection, which could be a problem particularly on Windows. Might also affect Grape users. Safest to close these deterministically. Untested beyond the many functional tests in this plugin.

@jglick jglick requested a review from a team as a code owner March 2, 2023 21:01
@jglick jglick added the bug label Mar 2, 2023
@jglick
Copy link
Member Author

jglick commented Mar 2, 2023

Note that this is a special loader as of #120. Should not matter for purposes of this PR I guess.

@jglick jglick enabled auto-merge March 2, 2023 21:24
@jglick jglick merged commit 43ba38b into jenkinsci:master Mar 2, 2023
@jglick jglick deleted the GroovyClassLoader.close branch March 2, 2023 22:05
@jglick

This comment was marked as resolved.

@jglick

This comment was marked as resolved.

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

Successfully merging this pull request may close these issues.

2 participants