Skip to content

Commit

Permalink
Always reset the ForkJoinPool TCCL on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Oct 18, 2023
1 parent 2e5414a commit c4ffaeb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ private void doClose() {

@Override
public int runMainClassBlocking(String... args) throws Exception {
//first we hack around class loading in the fork join pool
ForkJoinClassLoading.setForkJoinClassLoader(runtimeClassLoader);

//we have our class loaders
ClassLoader old = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(runtimeClassLoader);
Expand Down Expand Up @@ -252,7 +255,7 @@ public void overrideConfig(Map<String, String> config) {
* Runs the application, and returns a handle that can be used to shut it down.
*/
public RunningQuarkusApplication run(String... args) throws Exception {
//first
//first we hack around class loading in the fork join pool
ForkJoinClassLoading.setForkJoinClassLoader(runtimeClassLoader);

//we have our class loaders
Expand Down

0 comments on commit c4ffaeb

Please sign in to comment.