Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove synchronized blocks in Thread isAlive and isDead methods
threadRef = NO_REF assignment will happen once, and similarly, the started field is also set once during initialization. A user of these methods will probably invoke them multiple times until the desired result is achieved. A delay in getting the most up-to-date value should not hinder the functionality of these methods. To sum up, removing synchronization in these methods improves perf by reducing lock contention without hindering the functionality. Related: eclipse-openj9#20414 Signed-off-by: Babneet Singh <[email protected]>
- Loading branch information