Index: sdk/bin/dartanalyzer_developer |
diff --git a/sdk/bin/dartanalyzer_developer b/sdk/bin/dartanalyzer_developer |
index b522f56902026a1469a2af28b288a8b808eec2f6..9cf163d7e636d69af35a220bb1b3e480842f056c 100755 |
--- a/sdk/bin/dartanalyzer_developer |
+++ b/sdk/bin/dartanalyzer_developer |
@@ -38,4 +38,18 @@ fi |
JAR_FILE="$JAR_DIR/dartanalyzer.jar" |
-exec java -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@" |
+EXTRA_JVMARGS="-Xss2M " |
+OS=`uname | tr "[A-Z]" "[a-z]"` |
+if [ "$OS" == "darwin" ] ; then |
+ # Bump up the heap on Mac VMs, some of which default to 128M or less. |
+ EXTRA_JVMARGS+=" -Xmx256M -client " |
+else |
+ # On other architectures |
+ # -batch invocations will do better with a server vm |
+ # invocations for analyzing a single file do better with a client vm |
+ if [ $FOUND_BATCH = 0 ] ; then |
ricow1
2013/08/07 08:53:09
what is FOUND_BATCH here - I don't see it defined
|
+ EXTRA_JVMARGS+=" -client " |
+ fi |
+fi |
+ |
+exec java $EXTRA_JVMARGS -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@" |