Skip to content

Commit 06cefb7

Browse files
jglickmeetgoti07
authored andcommitted
Adjusting outdated comment about Queue.lock in NodeProvisioner (jenkinsci#26175)
1 parent 084e026 commit 06cefb7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/hudson/slaves/NodeProvisioner.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import hudson.model.MultiStageTimeSeries.TimeScale;
4040
import hudson.model.Node;
4141
import hudson.model.PeriodicWork;
42-
import hudson.model.Queue;
4342
import java.awt.Color;
4443
import java.io.IOException;
4544
import java.time.Duration;
@@ -208,8 +207,8 @@ public void suggestReviewNow() {
208207
* Periodically invoked to keep track of the load.
209208
* Launches additional nodes if necessary.
210209
*
211-
* Note: This method will obtain a lock on {@link #provisioningLock} first (to ensure that one and only one
212-
* instance of this provisioner is running at a time) and then a lock on {@link Queue#lock}
210+
* Note: This method will obtain a lock on {@link #provisioningLock} to ensure that one and only one
211+
* instance of this provisioner is running at a time.
213212
*/
214213
private void update() {
215214
long start = LOGGER.isLoggable(Level.FINER) ? System.nanoTime() : 0;

0 commit comments

Comments
 (0)