jackson-core
jackson-core copied to clipboard
consider changing InternCache
Clears cache when limit of 100 reached. Can cause blocking - eg https://stackoverflow.com/questions/75616007/at-com-fasterxml-jackson-core-util-interncache-interninterncache-java54-in-bl
LRUMap in jackson-databind used to do this but has now been changed to be a proper LRU cache.
InternCache can't use LRUMap but we could consider moving that class to jackson-core.
Alternatives include allowing InternCache to be configured. Size could be configurable or the underlying map implementation could be pluggable.
Also open is #726 and #998