File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1368,7 +1368,7 @@ shortens the GC pauses and/or increases the overall throughput of the system.
1368
1368
` ThreadLocal ` are long-living and there is a fixed number of them (e. g. workers of a fixed-sized
1369
1369
` ThreadPoolExecutor ` ) and there is a greater number of shorter-living ` ThreadLocal ` -containing
1370
1370
objects, was it considered to ** replace the instance-level ` ThreadLocal<Val> ` with a
1371
- ` ConcurrentHashMap<Thread, Val> threadLocalValues ` confined to the objects** , accessed via like
1371
+ ` ConcurrentHashMap<Thread, Val> threadLocalValues ` confined to the objects** , accessed like
1372
1372
` threadLocalValues.get(Thread.currentThread()) ` ? This approach requires some confidence and
1373
1373
knowledge about the threading model of the subsystem (see [ Dc.2] ( threading-flow-model ) ), though it
1374
1374
may also be trivial if Active Object pattern is used (see [ Dn.2] ( #use-patterns ) ), but is much
You can’t perform that action at this time.
0 commit comments