From effea771bc11bc8107108980d67fe756a17c2c4e Mon Sep 17 00:00:00 2001 From: Vedant Sachin Malode Date: Wed, 13 May 2026 09:27:53 -0700 Subject: [PATCH] [analyzer] Fix cache size counter drift in EvictingFileByteStore._cleanUpFolder Closes https://github.com/dart-lang/sdk/pull/63127 GitOrigin-RevId: 1fbf85ae3fb5be08a6caa872e75e74aadb777a86 Change-Id: Ieffaeaa59cd5e69d2d5aca2b9616b454dcce5c59 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/494021 Reviewed-by: Paul Berry Reviewed-by: Konstantin Shcheglov Commit-Queue: Paul Berry --- pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart b/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart index e917ca5b943..3cc87e477fb 100644 --- a/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart +++ b/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart @@ -139,8 +139,8 @@ class EvictingFileByteStore implements ByteStore { } try { file.deleteSync(); + currentSizeBytes -= fileStatMap[file]!.size; } catch (_) {} - currentSizeBytes -= fileStatMap[file]!.size; } } }