Skip to content

Commit

Permalink
Implement #1117: change the default RecyclerPool to use
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 27, 2024
1 parent 51d226b commit d50c9b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ a pure JSON library.
#507: Add `JsonWriteFeature.ESCAPE_FORWARD_SLASHES` to allow escaping of '/' for
String values
(contributed by Joo-Hyuk K)
#1117: Change default `RecylerPool` implementation to `newLockFreePool` (from
`threadLocalPool`)
#1137: Improve detection of "is a NaN" to only consider explicit cases,
not `double` overflow/underflow
#1145: `JsonPointer.appendProperty(String)` does not escape the property name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
public final class JsonRecyclerPools
{
/**
* @return the default {@link RecyclerPool} implementation
* which is the thread local based one:
* basically alias to {@link #threadLocalPool()}).
* Method to call to get the default recycler pool instance:
* as of Jackson 2.17 this is same as calling
* {@link #newLockFreePool()}; earlier
*
* @return the default {@link RecyclerPool} implementation to use
* if no specific implementation desired.
*/
public static RecyclerPool<BufferRecycler> defaultPool() {
return threadLocalPool();
return newLockFreePool();
}

/**
Expand Down

0 comments on commit d50c9b1

Please sign in to comment.