Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.FileSystems;
import java.security.CodeSource;
import java.util.EnumSet;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -290,6 +291,12 @@ public static void start(
startCwsAgent();
}

// To workaround JDK-8345810, we want to trigger loading/initializing of pthread library on
// main thread (Linux only)
if (OperatingSystem.isLinux()) {
FileSystems.getDefault();
}

/*
* Force the task scheduler init early. The exception profiling instrumentation may get in way of the initialization
* when it will happen after the class transformers were added.
Expand Down