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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompilerMainContext.java

Issue 9310061: Fix for extra memory consumption. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | « compiler/java/com/google/dart/compiler/DartCompiler.java ('k') | compiler/scripts/dartc_test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
index beb23040698e28a5334e11ef25588d0fe765887c..7dd2ad8845b98ff813c09af2b340667e8d8eea88 100644
--- a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
+++ b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
@@ -6,6 +6,7 @@ package com.google.dart.compiler;
import com.google.common.collect.Lists;
import com.google.common.collect.MapMaker;
+import com.google.common.collect.Maps;
import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.compiler.ast.LibraryUnit;
import com.google.dart.compiler.metrics.CompilerMetrics;
@@ -34,8 +35,7 @@ final class DartCompilerMainContext implements DartCompilerListener, DartCompile
private final LibrarySource lib;
private final DartArtifactProvider provider;
private final DartCompilerListener listener;
- private final Map<Source, List<DartCompilationError>> errors =
- new MapMaker().weakKeys().makeMap();
+ private final Map<Source, List<DartCompilationError>> errors = Maps.newHashMap();
scheglov 2012/02/02 14:39:18 Because DartCompilationError has reference on the
private final AtomicInteger errorCount = new AtomicInteger(0);
private final AtomicInteger warningCount = new AtomicInteger(0);
private final AtomicInteger typeErrorCount = new AtomicInteger(0);
« no previous file with comments | « compiler/java/com/google/dart/compiler/DartCompiler.java ('k') | compiler/scripts/dartc_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698