File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/com/google/devtools/build/lib/worker Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,20 @@ final class WorkerSpawnRunner implements SpawnRunner {
91
91
private static final int VERBOSE_LEVEL = 10 ;
92
92
93
93
private final SandboxHelpers helpers ;
94
+ /**
95
+ * The next work request ID to use. This field is static so we don't reuse work request IDs across
96
+ * Bazel invocations. Although that shouldn't happen under normal circumstances because we wait
97
+ * until a request finishes before exiting, it can happen if dynamic execution is enabled and one
98
+ * branch beats the other in the race.
99
+ */
100
+ private static final AtomicInteger requestIdCounter = new AtomicInteger (1 );
101
+
94
102
private final Path execRoot ;
95
103
private final ExtendedEventHandler reporter ;
96
104
private final ResourceManager resourceManager ;
97
105
private final RunfilesTreeUpdater runfilesTreeUpdater ;
98
106
private final WorkerOptions workerOptions ;
99
107
private final WorkerParser workerParser ;
100
- private final AtomicInteger requestIdCounter = new AtomicInteger (1 );
101
108
private final WorkerProcessMetricsCollector metricsCollector ;
102
109
103
110
public WorkerSpawnRunner (
You can’t perform that action at this time.
0 commit comments