The extensive use of volatiles here enables the most performance-critical actions, such as enqueuing and dequeuing tasks in the workQueue, [color=red]to normally proceed without holding the mainLock when they see that the state allows actions[/color], although,as described below, sometimes at the expense of re-checks following these actions.
上面是threadPoolExecutor的一段注释,标红的是什么意思,请教!