-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Configure a suitable Jackson object pool when virtual threads are enabled #39783
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
Comments
A lock free pool will be the default with Jackson 2.17: https://twitter.com/cowtowncoder/status/1762668711063003623 |
Note that my original attempt to set this up had a bug, as you shouldn't share a single
|
Thanks for the update! |
@mhalbritter can I help out with this one? seems interesting. |
Or update straight to Jackson 2.17 where the default changed to a lock-free pool: you only need explicit configuration for 2.16.x. Older versions don’t support this. |
Thanks @jkuipers. The update to Jackson has been done already in #39920, so this issue should be obsolete. FTR, here's the issue on Jackson's side: FasterXML/jackson-core#1117 |
The default pool uses
ThreadLocal
s, which aren't a great fit when using virtual threads.See https://twitter.com/jkuipers/status/1762505881000808516
The text was updated successfully, but these errors were encountered: