Skip to content

Commit 8bda625

Browse files
authored
Revert #1266: change default pool back to ThreadLocal-based pool (until 3.0) (#1294)
1 parent 47da668 commit 8bda625

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

release-notes/VERSION-2.x

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ a pure JSON library.
2929
#1264: Rename shaded `ch.randelshofer:fastdoubleparser` classes
3030
to prevent use by downstream consumers
3131
(requested by @seadbrane)
32-
#1266: Change default recycler pool to `newConcurrentDequePool()` in 2.18
3332
#1271: Deprecate `LockFreePool` implementation in 2.18 (remove from 3.0)
3433
#1277: Add back Java 22 optimisation in FastDoubleParser
3534

src/main/java/com/fasterxml/jackson/core/util/JsonRecyclerPools.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ public final class JsonRecyclerPools
1818
{
1919
/**
2020
* Method to call to get the default recycler pool instance:
21-
* as of Jackson 2.18.x and later (except for 2.17.0) this is same as calling
22-
* {@link #newConcurrentDequePool()}: before this it was calling
23-
* {@link #threadLocalPool()} (except for 2.17.1 that temporarily
24-
* called {@link #newLockFreePool()}, changed back due to reported issues).
21+
* as of Jackson 2.18 this is same as calling
22+
* {@link #threadLocalPool()}: Jackson 2.17.0 instead had this call
23+
* {@link #newLockFreePool()} but this was reverted due to problems reported.
24+
*<p>
25+
* Default pool will likely be changed in Jackson 3.0 to something else.
2526
*
2627
* @return the default {@link RecyclerPool} implementation to use
2728
* if no specific implementation desired.
2829
*/
2930
public static RecyclerPool<BufferRecycler> defaultPool() {
30-
// since 2.18.0:
31-
return newConcurrentDequePool();
31+
return threadLocalPool();
3232
}
3333

3434
/**

0 commit comments

Comments
 (0)