Build Pull Requests on CI using GitHub Actions

Closes gh-32443
This commit is contained in:
Stéphane Nicoll
2024-03-14 11:09:44 +01:00
parent 1d2b55e670
commit 19dfc781f5
2 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
name: Print JVM thread dumps
description: Prints a thread dump for all running JVMs
runs:
using: composite
steps:
- if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
for jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
jcmd $java_pid Thread.print
done
- if: ${{ runner.os == 'Windows' }}
shell: powershell
run: |
foreach ($jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem)) {
jcmd $jvm_pid Thread.print
}