commit | c472954b67524042618b59bb0e45f180bcea146f | [log] [tgz] |
---|---|---|
author | Robert Munteanu <rombert@apache.org> | Fri Jan 26 00:07:47 2018 +0200 |
committer | Robert Munteanu <rombert@apache.org> | Fri Jan 26 00:07:47 2018 +0200 |
tree | 674f9af526da3f50c8c42df3df1af007ab527d4f | |
parent | 0f1b023174f098d7923d43eb6646c3491a83fd60 [diff] |
SLING-7447 - Race condition in ThreadLocalCleaner initialization code Ensure that the reflection-obtained class fields are initialized eagerly when the class is loaded. Since the class will be accessed only when the thread pool is instantiated, the performance impact is minimal. Moreover, this saves a synchronized check for each Runnable execution. The gains are minimal, but there is less mutable state to reason about.
This module is part of the Apache Sling project.
Support for thread handling like pooling.