Skip to content

Updated CSS3Parser pool implementation - #664

Merged
rbri merged 1 commit into
HtmlUnit:masterfrom
Xceptance:pooledcss3parser
Nov 15, 2023
Merged

rbri merged 1 commit into
HtmlUnit:masterfrom
Xceptance:pooledcss3parser

Conversation

@rschwietzke

Copy link
Copy Markdown
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

rbri commented Nov 15, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown

Choose a reason for hiding this comment

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

@rschwietzke

rschwietzke commented Nov 22, 2023 via email

Copy link
Copy Markdown
Contributor Author

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