aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceTransport.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceTransport.java b/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceTransport.java
index 0db5212615..36a4aa1b60 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceTransport.java
+++ b/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceTransport.java
@@ -109,7 +109,7 @@ public class BuildEventServiceTransport implements BuildEventTransport {
/** Contains all events should be sent ordered by sequence number. */
private final BlockingDeque<InternalOrderedBuildEvent> pendingSend;
/** Holds the result status of the BuildEventStreamProtos BuildFinished event. */
- private Result invocationResult;
+ private volatile Result invocationResult;
/** Used to block until all events have been uploaded. */
private ListenableFuture<?> uploadComplete;
/** Used to ensure that the close logic is only invoked once. */
@@ -317,7 +317,7 @@ public class BuildEventServiceTransport implements BuildEventTransport {
}
@Override
- public synchronized void sendBuildEvent(BuildEvent event, final ArtifactGroupNamer namer) {
+ public void sendBuildEvent(BuildEvent event, final ArtifactGroupNamer namer) {
if (event instanceof BuildCompletingEvent) {
BuildCompletingEvent completingEvent = (BuildCompletingEvent) event;
if (completingEvent.getExitCode() != null
@@ -402,7 +402,7 @@ public class BuildEventServiceTransport implements BuildEventTransport {
}
}
- private synchronized Result getInvocationResult() {
+ private Result getInvocationResult() {
return invocationResult;
}