| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 set -e | 6 set -e |
| 7 | 7 |
| 8 case $(uname -s) in | 8 case $(uname -s) in |
| 9 *Linux*|*linux*) | 9 *Linux*|*linux*) |
| 10 OS="linux" | 10 OS="linux" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 DART_SCRIPT_NAME=${DART_SCRIPT_NAME:-$(basename $0)} | 24 DART_SCRIPT_NAME=${DART_SCRIPT_NAME:-$(basename $0)} |
| 25 | 25 |
| 26 if [ -x /usr/libexec/java_home ]; then | 26 if [ -x /usr/libexec/java_home ]; then |
| 27 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+') | 27 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+') |
| 28 fi | 28 fi |
| 29 | 29 |
| 30 # Limit heap in order to detect any memory issues. | 30 # Limit heap in order to detect any memory issues. |
| 31 # On some system, the heap dynamically sizes to > 1GB. | 31 # On some system, the heap dynamically sizes to > 1GB. |
| 32 # Users can specify DART_JVMARGS in the environment to override | 32 # Users can specify DART_JVMARGS in the environment to override |
| 33 # these settings. | 33 # these settings. |
| 34 EXTRA_JVMARGS="-Xmx272M -Xss2M" | 34 EXTRA_JVMARGS="-Xmx256M -Xss2M" |
| 35 | 35 |
| 36 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -Dcom.google.dart.runner.d8="$D8_EXEC
" \ | 36 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -Dcom.google.dart.runner.d8="$D8_EXEC
" \ |
| 37 -Dcom.google.dart.runner.progname="$DART_SCRIPT_NAME" \ | 37 -Dcom.google.dart.runner.progname="$DART_SCRIPT_NAME" \ |
| 38 -classpath "@CLASSPATH@" \ | 38 -classpath "@CLASSPATH@" \ |
| 39 com.google.dart.runner.DartRunner $@ | 39 com.google.dart.runner.DartRunner $@ |
| OLD | NEW |