Skip to content

Commit

Permalink
Update NamingThreadFactory.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bgprudhomme authored Aug 5, 2024
1 parent 2bd6e75 commit 1ca38e2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public NamingThreadFactory(String baseName) {

@Override
public Thread newThread(Runnable r) {
Thread t = Thread.ofVirtual().name(baseName + "-", nextThreadId.incrementAndGet()).unstarted(r);
// Refactoring this causes ServicesTest to hang forever (https://github.com/ponder-lab/rdf4j/actions/runs/10239404923/job/28324948852?pr=2)
Thread t = Executors.defaultThreadFactory().newThread(r);
t.setName(baseName + "-" + nextThreadId.incrementAndGet());
return t;
}

Expand Down

0 comments on commit 1ca38e2

Please sign in to comment.