Skip to content

Commit

Permalink
Merge pull request #12 from judovana/launcher
Browse files Browse the repository at this point in the history
github actions now should run all gcs
  • Loading branch information
judovana authored Feb 25, 2024
2 parents 40e56a9 + 44ac6d0 commit 6139d76
Show file tree
Hide file tree
Showing 19 changed files with 750 additions and 39 deletions.
398 changes: 372 additions & 26 deletions .github/workflows/test.yaml

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion bin/cms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
#
# set up GC_SPECIFIC_OPTS for CMS collector
# and append cms tag to gc log file name
export GC_SPECIFIC_OPTS="-XX:+UseConcMarkSweepGC -XX:PrintCMSStatistics=1 -XX:+PrintCMSInitiationStatistics"
if [[ ${JV} != 0 ]]; then
# jdk <= 8
export GC_SPECIFIC_OPTS="-XX:+UseConcMarkSweepGC -XX:PrintCMSStatistics=1 -XX:+PrintCMSInitiationStatistics"
else
# jdk >= 9
export GC_SPECIFIC_OPTS="-XX:+UseConcMarkSweepGC"
fi
export GC_LOG_FILE="${GC_LOG_FILE}-cms"
export OUT_LOG_FILE="${OUT_LOG_FILE}-cms"
4 changes: 3 additions & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2011, Red Hat and individual contributors
Expand Down Expand Up @@ -88,6 +88,8 @@ done
if [ $# -gt 0 ]; then
echo "invalid arguments $*"
fi

set -o pipefail # without pipefail, the below command will always return zero!
exec ${JAVA} ${HEAP_OPTS} \
${COOPS_OPTS} \
${GC_PRINT_OPTS} \
Expand Down
2 changes: 1 addition & 1 deletion bin/runcms-nocoops.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2011, Red Hat and individual contributors
Expand Down
2 changes: 1 addition & 1 deletion bin/runcms.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2011, Red Hat and individual contributors
Expand Down
2 changes: 1 addition & 1 deletion bin/rung1-nocoops.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2011, Red Hat and individual contributors
Expand Down
2 changes: 1 addition & 1 deletion bin/rung1.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2011, Red Hat and individual contributors
Expand Down
2 changes: 1 addition & 1 deletion bin/runpar-nocoops.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2011, Red Hat and individual contributors
Expand Down
2 changes: 1 addition & 1 deletion bin/runpar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2011, Red Hat and individual contributors
Expand Down
2 changes: 1 addition & 1 deletion bin/runshenandoah-nocoops.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2018, Red Hat and individual contributors
Expand Down
2 changes: 1 addition & 1 deletion bin/runshenandoah.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2018, Red Hat and individual contributors
Expand Down
29 changes: 29 additions & 0 deletions bin/runzgc-nocoops.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2018, Red Hat and individual contributors
# by the @authors tag. See the copyright.txt in the distribution for a
# full listing of individual contributors.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
# @authors Michal Vala
#
WD=`dirname $0`
. $WD/setup.sh
. $WD/zgc.sh
. $WD/nocoops.sh
exec $WD/run.sh $*
28 changes: 28 additions & 0 deletions bin/runzgc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2018, Red Hat and individual contributors
# by the @authors tag. See the copyright.txt in the distribution for a
# full listing of individual contributors.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
# @authors Michal Vala
#
WD=`dirname $0`
. $WD/setup.sh
. $WD/zgc.sh
exec $WD/run.sh $*
29 changes: 29 additions & 0 deletions bin/runzgcgen-nocoops.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2018, Red Hat and individual contributors
# by the @authors tag. See the copyright.txt in the distribution for a
# full listing of individual contributors.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
# @authors Michal Vala
#
WD=`dirname $0`
. $WD/setup.sh
. $WD/zgcgen.sh
. $WD/nocoops.sh
exec $WD/run.sh $*
28 changes: 28 additions & 0 deletions bin/runzgcgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
#
# JBoss, Home of Professional Open Source
# Copyright 2018, Red Hat and individual contributors
# by the @authors tag. See the copyright.txt in the distribution for a
# full listing of individual contributors.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
# @authors Michal Vala
#
WD=`dirname $0`
. $WD/setup.sh
. $WD/zgcgen.sh
exec $WD/run.sh $*
7 changes: 4 additions & 3 deletions bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ else
echo "no java found!"
exit 1
fi
#${JAVA} -version
#${JAVA} -XX:+PrintFlagsFinal
${JAVA} -version

# set up heap size, gc print opts and default gc log file
Expand All @@ -49,12 +51,11 @@ export HEAP_OPTS="-Xms$HEAPSIZE -Xmx$HEAPSIZE"
export OUT_LOG_FILE="outlog"
export GC_LOG_FILE="gclog"


# detect java version <= 8 and >= 9 because of changes introduced by JEP 158 (http://openjdk.java.net/jeps/158)
# java <= 8 has just `java -version`, java >= 9 has also `java --version`
# final GC_LOG_FILE is not known at the moment. We're going to eval $GC_LOG_FILE later in run.sh script
${JAVA} --version &> /dev/null
JV=$?
JV=0
${JAVA} --version &> /dev/null || JV=$?
if [[ ${JV} != 0 ]]; then
# jdk <= 8
export GC_PRINT_OPTS="-XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -verbose:gc"
Expand Down
30 changes: 30 additions & 0 deletions bin/zgc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# JBoss, Home of Professional Open Source
# Copyright 2018, Red Hat and individual contributors
# by the @authors tag. See the copyright.txt in the distribution for a
# full listing of individual contributors.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
# @authors Michal Vala
#
# setup script to configure Shenandoah gc
#
# set up GC_SPECIFIC_OPTS for Shenandoah collector
# and append Shenandoah tag to gc log file name
export GC_SPECIFIC_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseZGC"
export GC_LOG_FILE="${GC_LOG_FILE}-zgc"
export OUT_LOG_FILE="${OUT_LOG_FILE}-zgc"
30 changes: 30 additions & 0 deletions bin/zgcgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# JBoss, Home of Professional Open Source
# Copyright 2018, Red Hat and individual contributors
# by the @authors tag. See the copyright.txt in the distribution for a
# full listing of individual contributors.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
# @authors Michal Vala
#
# setup script to configure Shenandoah gc
#
# set up GC_SPECIFIC_OPTS for Shenandoah collector
# and append Shenandoah tag to gc log file name
export GC_SPECIFIC_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational"
export GC_LOG_FILE="${GC_LOG_FILE}-zgcgen"
export OUT_LOG_FILE="${OUT_LOG_FILE}-zgcgen"
Loading

0 comments on commit 6139d76

Please sign in to comment.