Skip to content

Commit

Permalink
remove hard-coded maximums
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Dec 10, 2021
1 parent 648c973 commit d743164
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/com.microsoft.tfs.client.clc/debugscripts/tfdev
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,6 @@ if [ $JAVA_DEBUG ]; then
JAVA_DEBUG_FLAGS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"
fi

exec java -Xmx512M $JAVA_DEBUG_FLAGS -classpath "$CLC_CLASSPATH" \
exec java $JAVA_DEBUG_FLAGS -classpath "$CLC_CLASSPATH" \
"-Dcom.microsoft.tfs.jni.native.base-directory=$BASE_DIRECTORY/../../com.microsoft.tfs.jni/os" \
$RANDOM_DEVICE_PROPERTY $LAUNCHER_CLASS "$@"
2 changes: 1 addition & 1 deletion source/com.microsoft.tfs.client.clc/debugscripts/tfdev.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if DEFINED JAVA_DEBUG set JAVA_DEBUG_FLAGS=-Xdebug -Xnoagent -Xrunjdwp:transport

setlocal DISABLEDELAYEDEXPANSION

java -Xmx512M %JAVA_DEBUG_FLAGS% -cp %CLC_CLASSPATH% "-Dcom.microsoft.tfs.jni.native.base-directory=%BASE_DIRECTORY%..\..\com.microsoft.tfs.jni\os" %LAUNCHER_CLASS% %*
java %JAVA_DEBUG_FLAGS% -cp %CLC_CLASSPATH% "-Dcom.microsoft.tfs.jni.native.base-directory=%BASE_DIRECTORY%..\..\com.microsoft.tfs.jni\os" %LAUNCHER_CLASS% %*

set RETURN_VALUE=%errorlevel%
goto end
Expand Down
2 changes: 1 addition & 1 deletion source/com.microsoft.tfs.client.clc/debugscripts/witdev
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ if [ `uname` = "Linux" ] ; then
RANDOM_DEVICE_PROPERTY="-Djava.security.egd=file:/dev/urandom"
fi

exec java -Xmx512M -classpath "$CLC_CLASSPATH" \
exec java -classpath "$CLC_CLASSPATH" \
"-Dcom.microsoft.tfs.jni.native.base-directory=$BASE_DIRECTORY/../../com.microsoft.tfs.jni/os" \
$RANDOM_DEVICE_PROPERTY $LAUNCHER_CLASS "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for %%a in (%DEP_PROJECTS_LIBDIRS%) do (for %%u in (%%a\*.jar) do set CLC_CLASSP

setlocal DISABLEDELAYEDEXPANSION

java -Xmx512M -cp %CLC_CLASSPATH% "-Dcom.microsoft.tfs.jni.native.base-directory=%BASE_DIRECTORY%..\..\com.microsoft.tfs.jni\os" %LAUNCHER_CLASS% %*
java -cp %CLC_CLASSPATH% "-Dcom.microsoft.tfs.jni.native.base-directory=%BASE_DIRECTORY%..\..\com.microsoft.tfs.jni\os" %LAUNCHER_CLASS% %*

set RETURN_VALUE=%errorlevel%
goto end
Expand Down
2 changes: 1 addition & 1 deletion source/com.microsoft.tfs.client.clc/scripts/clc-launcher
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ if [ `uname` = "Linux" ] ; then
RANDOM_DEVICE_PROPERTY="-Djava.security.egd=file:/dev/urandom"
fi

exec java -Xmx2048M -classpath "$CLC_CLASSPATH" $TF_ADDITIONAL_JAVA_ARGS \
exec java -classpath "$CLC_CLASSPATH" $TF_ADDITIONAL_JAVA_ARGS \
"-Dcom.microsoft.tfs.jni.native.base-directory=$BASE_DIRECTORY/native" \
$RANDOM_DEVICE_PROPERTY @@LAUNCHER_CLASS@@ "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set CLC_CLASSPATH=%CLC_CLASSPATH%;%AI_JAR%

setlocal DISABLEDELAYEDEXPANSION

java -Xmx2048M -cp %CLC_CLASSPATH% %TF_ADDITIONAL_JAVA_ARGS% "-Dcom.microsoft.tfs.jni.native.base-directory=%BASE_DIRECTORY%native" @@LAUNCHER_CLASS@@ %*
java -cp %CLC_CLASSPATH% %TF_ADDITIONAL_JAVA_ARGS% "-Dcom.microsoft.tfs.jni.native.base-directory=%BASE_DIRECTORY%native" @@LAUNCHER_CLASS@@ %*

set RETURN_VALUE=%errorlevel%
goto end
Expand Down

0 comments on commit d743164

Please sign in to comment.