Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 2676363003: Add EvictingFileByteStore and make FileByteStore non-evicting. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index 4e4e88f5439484b19fdb866e13eebd944810c7f1..1ea9e8d24cceb13a7a178d2b8d1aab557f9cf068 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -382,7 +382,7 @@ class AnalysisServer {
}
if (resourceProvider is PhysicalResourceProvider) {
byteStore = new MemoryCachingByteStore(
- new FileByteStore(
+ new EvictingFileByteStore(
resourceProvider.getStateLocation('.analysis-driver').path,
1024 * 1024 * 1024 /*1 GiB*/),
64 * 1024 * 1024 /*64 MiB*/);
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698