Skip to content

feat: Run Redline compiler threads as daemons - #229

Open
Phoenixxo wants to merge 1 commit into
bytecodealliance:mainfrom
Phoenixxo:fix/daemon-compiler-threads
Open

Phoenixxo wants to merge 1 commit into
bytecodealliance:mainfrom
Phoenixxo:fix/daemon-compiler-threads

Conversation

@Phoenixxo

Copy link
Copy Markdown
Contributor

Description

NativeCompiler compiles on a fixed thread pool that is never shut down, meaning you just now have an active JVM running in the background while this goes. Once anything had been compiled at runtime, those threads kept the JVM alive after the application finished. I ran into this as a Minecraft client that hung on quit after loading a mod through Redline.

The pool now uses a thread factory that makes daemon threads named redline-compiler. Compilation works the same way; the threads just no longer keep a finished JVM running. I didn't add a test for this, since checking that a JVM exits needs a separate process, but I can add one if you'd like.

  • Verified all tests still pass after this change

@Phoenixxo
Phoenixxo requested a review from andreaTP as a code owner October 8, 2026 03:13
@andreaTP

andreaTP commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

I believe that this problem should be fixed by #228 can you verify?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants