Skip to content

Conversation

@davecramer
Copy link
Contributor

Summary

see $subject

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

}

private boolean startThread() {
Thread thread = threadFactory.newThread(new Runnable() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the thread be a daemon thread?

Copy link
Contributor Author

@davecramer davecramer Dec 2, 2025

Choose a reason for hiding this comment

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

Actually we do not use a daemon thread in pgjdbc


public void releaseResources() {
this.pluginManager.releaseResources();
if (this.pluginService instanceof CanReleaseResources) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we clean up pluginManager similar way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we would have to pass pluginManager into LazyCleaner, but sure

@davecramer
Copy link
Contributor Author

Hold off on doing anything with this. Upstream we are looking at creating a multi-version jar with java 11 and using the built-in cleaner and some modifications to this implementation

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