Skip to content

Conversation

@rschwietzke
Copy link
Contributor

Updated pool with a different concept to allow more pooling, lighter synchronization, and avoid leaks when not auto-closed. It also uses AutoCloseable instead of Closeable (this is for IO, not for try-with-resource in general).

I could only run my test cases, the rest comes up with many errors related to JS, so I hope that is not this updated.

…ent leaks and use the AutoCloseable interface instead of Closeable
@rbri rbri merged commit 72071da into HtmlUnit:master Nov 15, 2023
@rbri
Copy link
Member

rbri commented Nov 15, 2023

Thanks a lot, lets see what the ci thinks about this :-)

this.pool = pool;
}
else {
throw new IllegalStateException("This PooledParser was not returned to the pool properly");
Copy link

Choose a reason for hiding this comment

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

@rschwietzke
Copy link
Contributor Author

rschwietzke commented Nov 22, 2023 via email

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.

3 participants