jackson-databind icon indicating copy to clipboard operation
jackson-databind copied to clipboard

Remove unnecessary external synchronization from `SerializerCache` access of `_sharedMap`

Open cowtowncoder opened this issue 1 year ago • 1 comments

(note: off-shoot of #4430 )

Due to historical reasons, SerializerCache uses synchronized around all access to LookupCache _sharedMap. This is not necessary as LookupCache implementations must implement thread-safe access. Let's remove these statements around access.

But just in case do it only for 2.18, not 2.17 patch release.

cowtowncoder avatar Mar 22 '24 03:03 cowtowncoder