diff options
author | Sergiy Kuryata <sergeyk@microsoft.com> | 2017-09-22 10:13:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-22 10:13:14 +0300 |
commit | fe8a3e7ed4100e5fbaefd59b088517f6bfb86c31 (patch) | |
tree | 2bb0a60fb21d4fe9f796201b93018e524ebeae1b /tests | |
parent | 52e39dc5d746fe5ee28a571e5fd25d23d732648b (diff) |
Enable Server GC (#4591)
This change adds support for Server GC.
To enable the Server GC for an application, the RH_UseServerGC environment variable (which is already supported by the runtime) should be set to 1.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/Simple/BasicThreading/BasicThreading.cmd | 3 | ||||
-rwxr-xr-x | tests/src/Simple/BasicThreading/BasicThreading.sh | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/src/Simple/BasicThreading/BasicThreading.cmd b/tests/src/Simple/BasicThreading/BasicThreading.cmd index 2167b8ecf..8712cf575 100644 --- a/tests/src/Simple/BasicThreading/BasicThreading.cmd +++ b/tests/src/Simple/BasicThreading/BasicThreading.cmd @@ -1,5 +1,8 @@ @echo off setlocal + +rem Enable Server GC for this test +set RH_UseServerGC=1 "%1\%2" set ErrorCode=%ERRORLEVEL% IF "%ErrorCode%"=="100" ( diff --git a/tests/src/Simple/BasicThreading/BasicThreading.sh b/tests/src/Simple/BasicThreading/BasicThreading.sh index 6640f629f..91ec7c750 100755 --- a/tests/src/Simple/BasicThreading/BasicThreading.sh +++ b/tests/src/Simple/BasicThreading/BasicThreading.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash + +# Enable Server GC for this test +export RH_UseServerGC=1 $1/$2 if [ $? == 100 ]; then echo pass |