-
Notifications
You must be signed in to change notification settings - Fork 38
Refactor CI test scripts #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 26 commits
dd0c9bf
1fb0c39
0e0fe7c
daf98e6
2584532
76d1ff7
0307418
f6e0d76
64b4466
fe2d79e
c22a144
a482a90
c0f4bb3
1e1e472
f466b04
2530d23
f636d6f
8df5d57
10f93b9
b581535
88978e9
49535c2
016370e
7c6357b
fb629c3
936c09f
ab4deed
269858f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,12 +2,22 @@ set -xe | |||||||
|
|
||||||||
| . $(dirname "$0")/common.sh | ||||||||
|
|
||||||||
| unset JAVA_TOOL_OPTIONS | ||||||||
| unset MMTK_PLAN | ||||||||
| ensure_env OPENJDK_PATH | ||||||||
|
|
||||||||
| # To OpenJDK folder | ||||||||
| cd $OPENJDK_PATH | ||||||||
| # Use fastdebug if DEBUG_LEVEL is unset | ||||||||
| DEBUG_LEVEL=${DEBUG_LEVEL:="fastdebug"} | ||||||||
|
|
||||||||
| # Build target. Could be empty, or product-bundles. | ||||||||
| build_target=$1 | ||||||||
|
|
||||||||
| # Build | ||||||||
| # Build product bundle | ||||||||
| cd $OPENJDK_PATH | ||||||||
| sh configure --disable-warnings-as-errors --with-debug-level=$DEBUG_LEVEL | ||||||||
| make CONF=linux-x86_64-normal-server-$DEBUG_LEVEL THIRD_PARTY_HEAP=$BINDING_PATH/openjdk | ||||||||
| make CONF=linux-x86_64-normal-server-$DEBUG_LEVEL THIRD_PARTY_HEAP=$BINDING_PATH/openjdk $OPENJDK_BUILD_TARGET | ||||||||
|
|
||||||||
| if [[ $DEBUG_LEVEL == "fastdebug" && $OPENJDK_BUILD_TARGET == "product-bundles" ]]; then | ||||||||
| pushd build/linux-x86_64-normal-server-fastdebug/bundles | ||||||||
| F=`ls *_bin-debug.tar.gz` | ||||||||
| mv $F ${F/_bin-debug/_bin} | ||||||||
|
||||||||
| F=`ls *_bin-debug.tar.gz` | |
| mv $F ${F/_bin-debug/_bin} | |
| rename _bin-debug _bin *_bin-debug.tar.gz |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,57 +4,53 @@ set -xe | |
|
|
||
| unset JAVA_TOOL_OPTIONS | ||
|
|
||
| export MMTK_EXTREME_ASSERTIONS=1 | ||
| . $(dirname "$0")/ci-build.sh | ||
| run_subset() { | ||
| heap_multiplier=$1 | ||
|
|
||
| cd $OPENJDK_PATH | ||
| runbms_dacapo2006_with_heap_multiplier fop $heap_multiplier | ||
| runbms_dacapo2006_with_heap_multiplier luindex $heap_multiplier | ||
| } | ||
|
|
||
| # -- SemiSpace -- | ||
| export MMTK_PLAN=SemiSpace | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought the idea was to move away from using environment variables since OpenJDK has support for passing MMTk options |
||
|
|
||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar fop | ||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar luindex | ||
| run_subset 4 | ||
|
|
||
| # --- Immix --- | ||
| export MMTK_PLAN=Immix | ||
|
|
||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar fop | ||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar luindex | ||
| run_subset 4 | ||
|
|
||
| # --- GenImmix --- | ||
| export MMTK_PLAN=GenImmix | ||
|
|
||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar fop | ||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar luindex | ||
| run_subset 4 | ||
|
|
||
| # --- StickyImmix --- | ||
| export MMTK_PLAN=StickyImmix | ||
|
|
||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar fop | ||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar luindex | ||
| run_subset 4 | ||
|
|
||
| # -- GenCopy -- | ||
| export MMTK_PLAN=GenCopy | ||
|
|
||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar fop | ||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar luindex | ||
| run_subset 4 | ||
|
|
||
| # -- NoGC -- | ||
| export MMTK_PLAN=NoGC | ||
|
|
||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms1G -Xmx1G -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar fop | ||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms1G -Xmx1G -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar luindex | ||
| runbms_dacapo2006_with_heap_size fop 1000 1000 | ||
| runbms_dacapo2006_with_heap_size luindex 1000 1000 | ||
|
|
||
| # --- MarkSweep --- | ||
| export MMTK_PLAN=MarkSweep | ||
|
|
||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar fop | ||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms500M -Xmx500M -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar luindex | ||
| run_subset 8 | ||
|
|
||
| # -- PageProtect -- | ||
| sudo sysctl -w vm.max_map_count=655300 | ||
| export MMTK_PLAN=PageProtect | ||
|
|
||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -Xms4G -Xmx4G -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar fop | ||
| # Note: Disable compressed pointers for luindex as it does not work well with GC plans that uses virtual memory excessively. | ||
| build/linux-x86_64-normal-server-$DEBUG_LEVEL/jdk/bin/java -XX:+UseThirdPartyHeap -server -XX:MetaspaceSize=100M -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -Xms4G -Xmx4G -jar $DACAPO_PATH/dacapo-2006-10-MR2.jar luindex | ||
| # Note: Disable compressed pointers as it does not work well with GC plans that uses virtual memory excessively. | ||
| runbms_dacapo2006_with_heap_size fop 4000 4000 -XX:-UseCompressedOops -XX:-UseCompressedClassPointers | ||
| runbms_dacapo2006_with_heap_size luindex 4000 4000 -XX:-UseCompressedOops -XX:-UseCompressedClassPointers | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| set -xe | ||
|
|
||
| . $(dirname "$0")/common.sh | ||
|
|
||
| unset JAVA_TOOL_OPTIONS | ||
|
|
||
| run_subset() { | ||
| heap_multiplier=$1 | ||
|
|
||
| runbms_dacapo2006_with_heap_multiplier antlr $heap_multiplier | ||
| runbms_dacapo2006_with_heap_multiplier fop $heap_multiplier | ||
| runbms_dacapo2006_with_heap_multiplier luindex $heap_multiplier | ||
| } | ||
|
|
||
| # --- Immix --- | ||
| # export MMTK_PLAN=Immix | ||
| # run_subset 4 | ||
|
|
||
| # --- GenImmix --- | ||
| # export MMTK_PLAN=GenImmix | ||
| # run_subset 4 | ||
|
|
||
| # --- StickyImmix --- | ||
| # export MMTK_PLAN=StickyImmix | ||
| # run_subset 4 | ||
|
|
||
| # --- MarkSweep --- | ||
| export MMTK_PLAN=MarkSweep | ||
|
|
||
| run_subset 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is unused