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

Issue 11189149: Issue 5530. Make DartParser thread safe. Remove compiler lock. (Closed)

Created:
8 years, 2 months ago by scheglov
Modified:
8 years, 1 month ago
Reviewers:
danrubel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 7

Patch Set 2 : Wait for warm up before allowing other thread for use DartCompilerUtilities #

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 2 months ago (2012-10-23 20:56:27 UTC) #1
danrubel
https://codereview.chromium.org/11189149/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java File editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java (right): https://codereview.chromium.org/11189149/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java#newcode774 editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java:774: return DartCompiler.analyzeLibraries( Keep synchronization for now (see below). https://codereview.chromium.org/11189149/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java#newcode777 ...
8 years, 2 months ago (2012-10-24 09:56:48 UTC) #2
scheglov
https://codereview.chromium.org/11189149/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java File editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java (right): https://codereview.chromium.org/11189149/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java#newcode777 editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java:777: config, On 2012/10/24 09:56:48, danrubel wrote: > nit: fix ...
8 years, 1 month ago (2012-10-25 18:54:42 UTC) #3
danrubel
8 years, 1 month ago (2012-10-25 20:21:49 UTC) #4
LGTM

https://codereview.chromium.org/11189149/diff/1/editor/tools/plugins/com.goog...
File
editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java
(right):

https://codereview.chromium.org/11189149/diff/1/editor/tools/plugins/com.goog...
editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java:857:
DartCompiler.compileLib(libSource, embeddedLibraries, config, provider,
listener);
On 2012/10/25 18:54:42, scheglov wrote:
> On 2012/10/24 09:56:48, danrubel wrote:
> > This method is called by DartCompilerWarmup#warmupCompiler, which passes a
> root
> > artifact provider singleton. warmupCompiler must complete before any other
> calls
> > that use the singleton otherwise the results will be unpredictable. I
> recommend
> > keeping the synchronization around the methods involving
DartArtifactProvider
> > for now to simplify this CL and address that issue in a subsequent CL.
> 
> I think we can try alternative for lock - use latch to wait for warm up.

I like it !

Powered by Google App Engine
This is Rietveld 408576698