aboutsummaryrefslogtreecommitdiffstats
path: root/lint/cli
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-07-16 12:12:48 -0700
committerTor Norbye <tnorbye@google.com>2012-07-16 12:13:51 -0700
commit21eb802f2a44567937499e8be0fb20874bf1fbad (patch)
treeafb3747ed4b0bfedad646e2b61543bea5ae1f6b1 /lint/cli
parentc83ed60c2cb80499dca9ea5c4ba48f137355bc8b (diff)
downloadsdk-21eb802f2a44567937499e8be0fb20874bf1fbad.zip
sdk-21eb802f2a44567937499e8be0fb20874bf1fbad.tar.gz
sdk-21eb802f2a44567937499e8be0fb20874bf1fbad.tar.bz2
Bump up available memory to lint cli
The lint cli can require a lot of memory when it's run on a large directory full of project, since it accumulates all the errors as well as source contents in order to be able to sort them and to emit source code snippets in the HTML report. The default of 256 Mb isn't always enough, so bump it up a bit. For more, see http://code.google.com/p/android/issues/detail?id=34734 Change-Id: Ib7f0fd7a5a2d149221a43bb47490b44b46d39de0
Diffstat (limited to 'lint/cli')
-rwxr-xr-xlint/cli/etc/lint2
-rwxr-xr-xlint/cli/etc/lint.bat2
2 files changed, 2 insertions, 2 deletions
diff --git a/lint/cli/etc/lint b/lint/cli/etc/lint
index 2b53df6..6a75288 100755
--- a/lint/cli/etc/lint
+++ b/lint/cli/etc/lint
@@ -66,7 +66,7 @@ javaCmd="java"
jarpath="$frameworkdir/$jarfile"
exec "$javaCmd" \
- -Xmx256M $os_opts $java_debug \
+ -Xmx512m $os_opts $java_debug \
-Dcom.android.tools.lint.bindir="$progdir" \
-classpath "$jarpath" \
com.android.tools.lint.Main "$@"
diff --git a/lint/cli/etc/lint.bat b/lint/cli/etc/lint.bat
index 1189ef1..08ae1c3 100755
--- a/lint/cli/etc/lint.bat
+++ b/lint/cli/etc/lint.bat
@@ -54,5 +54,5 @@ if debug NEQ "%1" goto NoDebug
set jarpath=%frameworkdir%%jarfile%
set javaextdirs=%frameworkdir%
-call %java_exe% %java_debug% -Dcom.android.tools.lint.bindir=%prog_dir% -Dcom.android.tools.lint.workdir=%work_dir% -classpath "%jarpath%" com.android.tools.lint.Main %*
+call %java_exe% %java_debug% -Xmx512m -Dcom.android.tools.lint.bindir=%prog_dir% -Dcom.android.tools.lint.workdir=%work_dir% -classpath "%jarpath%" com.android.tools.lint.Main %*