aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2018-07-03 13:18:36 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-07-03 13:19:52 -0700
commit6b8c7ca48e9e48a9906c031346dc4a924b7ef559 (patch)
treeaca4bce9e140d98affa0fb5f67ca88b25ada34ce /src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java
parent19cfc7c36146e3415c46d80366d55efb7503a161 (diff)
In SkyframeExecutor#invalidateConfigurationCollection, actually delete the nodes, instead of invalidating them. Invalidating isn't sound, because we're depending on externally injected state to be re-read during evaluation. Also rename the method to resetConfigurationCollectionForTesting since it's only used in tests.
PiperOrigin-RevId: 203172895
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java9
1 files changed, 4 insertions, 5 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 1dc33282fb..09f665b8a9 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
@@ -734,12 +734,11 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory {
/** Computes statistics on heap-resident rules and aspects. */
public abstract List<RuleStat> getRuleStats(ExtendedEventHandler eventHandler);
- /**
- * Removes ConfigurationFragmentValues from the cache.
- */
+ /** Removes ConfigurationFragmentValues from the cache. */
@VisibleForTesting
- public void invalidateConfigurationCollection() {
- invalidate(SkyFunctionName.functionIsIn(ImmutableSet.of(SkyFunctions.CONFIGURATION_FRAGMENT)));
+ public void resetConfigurationCollectionForTesting() {
+ memoizingEvaluator.delete(
+ SkyFunctionName.functionIsIn(ImmutableSet.of(SkyFunctions.CONFIGURATION_FRAGMENT)));
}
/**