Skip to content
This repository was archived by the owner on Oct 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ jobs:
ulimit -a
chmod +x ./bin/wave
./bin/wave --version
# must start with a virtual memory limit (#46)
for v in 2000000 1000000; do (ulimit -v $v && ./bin/wave --version); done
release:
name: Release
if: "contains(github.event.head_commit.message, '[release]') && github.event.ref=='refs/heads/master'"
Expand Down
5 changes: 4 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ graalvmNative {
configurationFileDirectories.from(file('conf'))

if (System.env.getOrDefault("PLATFORM", "") == "linux-x86_64") {
buildArgs(['--static', '--libc=musl', '--gc=G1', '-march=compatibility'])
// Do not use G1: in a static musl image it calls getcpu via the legacy vsyscall page,
// which segfaults on kernels booted with vsyscall=none (e.g. WSL2). See #86.
// Cap the reserved heap address space instead, so it runs under `ulimit -v`. See #46.
buildArgs(['--static', '--libc=musl', '-march=compatibility', '-R:ReservedAddressSpaceSize=512m'])
}

javaLauncher = javaToolchains.launcherFor {
Expand Down
Loading