-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now, when we can dump just a single module, we can do it synchronously
- Loading branch information
1 parent
c89fca2
commit 116b650
Showing
2 changed files
with
7 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 3 additions & 11 deletions
14
.../runtime-compiler-dump-igv/src/main/java/org/enso/compiler/dump/igv/IGVDumperFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
package org.enso.compiler.dump.igv; | ||
|
||
import java.util.concurrent.ExecutorService; | ||
import java.util.concurrent.Executors; | ||
import org.enso.compiler.dump.service.IRDumpFactoryService; | ||
import org.enso.compiler.dump.service.IRDumper; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class IGVDumperFactory implements IRDumpFactoryService { | ||
|
||
private static final Logger LOGGER = LoggerFactory.getLogger(IGVDumperFactory.class); | ||
private final ExecutorService executor; | ||
|
||
public IGVDumperFactory() { | ||
this.executor = Executors.newVirtualThreadPerTaskExecutor(); | ||
} | ||
public IGVDumperFactory() {} | ||
|
||
@Override | ||
public IRDumper create(String moduleName) { | ||
LOGGER.trace("Creating IGV dumper for module {}", moduleName); | ||
return IGVDumper.createForModule(moduleName, executor); | ||
return IGVDumper.createForModule(moduleName); | ||
} | ||
|
||
@Override | ||
public void shutdown() { | ||
executor.shutdown(); | ||
} | ||
public void shutdown() {} | ||
} |