Hoist call to ImmutableMap.copyOf().
RELNOTES: None.
@@ -361,7 +361,8 @@ public final class SkyframeActionExecutor {
}
public void setClientEnv(Map<String, String> clientEnv) {
- this.clientEnv = clientEnv;
+ // Copy once here, instead of on every construction of ActionExecutionContext.
+ this.clientEnv = ImmutableMap.copyOf(clientEnv);
}
boolean usesActionFileSystem() {
