Skip to content

Commit

Permalink
CACHE_THRESHOLD 8M
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jan 11, 2025
1 parent 15d1850 commit 2c76718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/com/alibaba/fastjson2/JSONFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static void setUseJacksonAnnotation(boolean useJacksonAnnotation) {
CACHE_ITEMS = items;
}

static final int CACHE_THRESHOLD = 1024 * 1024 * 4;
static final int CACHE_THRESHOLD = 1024 * 1024 * 8;
static final AtomicReferenceFieldUpdater<CacheItem, char[]> CHARS_UPDATER
= AtomicReferenceFieldUpdater.newUpdater(CacheItem.class, char[].class, "chars");
static final AtomicReferenceFieldUpdater<CacheItem, byte[]> BYTES_UPDATER
Expand Down

0 comments on commit 2c76718

Please sign in to comment.