Skip to content

Commit 8d4a7c3

Browse files
committed
Mark Spark worker as daemon thread
1 parent 29c1a47 commit 8d4a7c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/org/embeddedt/modernfix/spark/SparkLaunchProfiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class SparkLaunchProfiler {
3434
private static PlatformInfo platformInfo = new ModernFixPlatformInfo();
3535
private static CommandSender commandSender = new ModernFixCommandSender();
3636
private static Map<String, Sampler> ongoingSamplers = new Object2ReferenceOpenHashMap<>();
37-
private static ExecutorService executor = Executors.newSingleThreadScheduledExecutor((new ThreadFactoryBuilder()).setNameFormat("spark-modernfix-async-worker").build());
37+
private static ExecutorService executor = Executors.newSingleThreadScheduledExecutor(new ThreadFactoryBuilder().setDaemon(true).setNameFormat("spark-modernfix-async-worker").build());
3838
private static final SparkPlatform platform = new SparkPlatform(new ModernFixSparkPlugin());
3939

4040
private static final boolean USE_JAVA_SAMPLER_FOR_LAUNCH = !Boolean.getBoolean("modernfix.profileWithAsyncSampler");

0 commit comments

Comments
 (0)