File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/main/java/com/fasterxml/jackson/core/util Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 77/**
88 * Helper entity used to control access to simple buffer recyling scheme used for
99 * some encoding, decoding tasks.
10- *
10+ *
1111 * @see BufferRecycler
1212 * @see JsonStringEncoder
1313 *
@@ -36,10 +36,13 @@ public class BufferRecyclers
3636 */
3737 private final static ThreadLocalBufferManager _bufferRecyclerTracker ;
3838 static {
39- _bufferRecyclerTracker = "true" .equals (System .getProperty (SYSTEM_PROPERTY_TRACK_REUSABLE_BUFFERS ))
40- ? ThreadLocalBufferManager .instance ()
41- : null ;
42- }
39+ boolean trackReusableBuffers = false ;
40+ try {
41+ trackReusableBuffers = "true" .equals (System .getProperty (SYSTEM_PROPERTY_TRACK_REUSABLE_BUFFERS ));
42+ } catch (SecurityException e ) { }
43+
44+ _bufferRecyclerTracker = trackReusableBuffers ? ThreadLocalBufferManager .instance () : null ;
45+ }
4346
4447 /*
4548 /**********************************************************
You can’t perform that action at this time.
0 commit comments