aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2017-03-29 22:12:20 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2017-03-31 17:06:44 +0200
commit9ec917f10533c4cc68aacda4ca77ebeaec7bfa90 (patch)
tree3880f5f1dc99a1cd21fe927b4f9ab30ec63c4b8e /src/main/java/com/google
parente34a2f85f1369916b8763e55b333f1c77a076205 (diff)
Actually clear the per-build syscall cache after loading. Setting it to null doesn't work because the PackageFactory keeps a reference to it.
PiperOrigin-RevId: 151632473
Diffstat (limited to 'src/main/java/com/google')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java
index 4c970851df..fd1b912024 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java
@@ -1522,7 +1522,7 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory {
EvaluationResult<ActionLookupValue> result =
buildDriver.evaluate(keys, keepGoing, numThreads, eventHandler);
// Get rid of any memory retained by the cache -- all loading is done.
- perBuildSyscallCache = null;
+ perBuildSyscallCache.clear();
return result;
}