/** * The number of nanoseconds for which it is faster to spin * rather than to use timed park. A rough estimate suffices * to improve responsiveness with very short timeouts. */ static final long spinForTimeoutThreshold = 1000L;
如果获得许可失败,并且距离deadline的时间小于1000(1秒),那么线程就会继续尝试获得许可,不会进入park状态。