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

Unified Diff: sdk/bin/pub.bat

Issue 170003003: Bump VM heap size in pub batch files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | sdk/bin/pub_developer.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/bin/pub.bat
diff --git a/sdk/bin/pub.bat b/sdk/bin/pub.bat
index 9294231014ab1c6a344984c1df52937a5996bcae..4951d509dad74807355dee1e1982097902043611 100644
--- a/sdk/bin/pub.bat
+++ b/sdk/bin/pub.bat
@@ -23,11 +23,17 @@ set SNAPSHOT=%BIN_DIR%\snapshots\pub.dart.snapshot
set BUILD_DIR=%SDK_DIR%\..\build\ReleaseIA32
set PACKAGES_DIR=%BUILD_DIR%\packages
set DART_IN_BUILT_SDK=%BUILD_DIR%\dart-sdk\bin\dart
+set VM_OPTIONS=
+
+rem Give the VM extra memory for dart2js.
+rem # TODO(rnystrom): Remove when #8355 is fixed.
+rem See comments regarding options below in dart2js shell script.
+set VM_OPTIONS=%VM_OPTIONS% --old_gen_heap_size=1024
if exist "%SNAPSHOT%" (
- "%DART%" "%SNAPSHOT%" %*
+ "%DART%" %VM_OPTIONS% "%SNAPSHOT%" %*
) else (
- "%DART_IN_BUILT_SDK%" --package-root="%PACKAGES_DIR%" "%PUB%" %*
+ "%DART_IN_BUILT_SDK%" %VM_OPTIONS% --package-root="%PACKAGES_DIR%" "%PUB%" %*
)
endlocal
@@ -46,4 +52,4 @@ if not "%current%"=="" call :follow_links "%current%", result
endlocal & set %~2=%result%
goto :eof
-:end
+:end
« no previous file with comments | « no previous file | sdk/bin/pub_developer.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698