diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x index 79c41a30bb..3ed540cb5d 100644 --- a/release-notes/VERSION-2.x +++ b/release-notes/VERSION-2.x @@ -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 diff --git a/src/main/java/com/fasterxml/jackson/core/util/JsonRecyclerPools.java b/src/main/java/com/fasterxml/jackson/core/util/JsonRecyclerPools.java index 5f38d3e23b..4547b2c36b 100644 --- a/src/main/java/com/fasterxml/jackson/core/util/JsonRecyclerPools.java +++ b/src/main/java/com/fasterxml/jackson/core/util/JsonRecyclerPools.java @@ -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 defaultPool() { - return threadLocalPool(); + return newLockFreePool(); } /**