Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
try to use virtual threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Sep 6, 2023
1 parent c9abaff commit 21efe83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@ libraryDependencies ++= Seq(
)
}
}

javacOptions ++= Seq("-source", "20", "-target", "20")
2 changes: 1 addition & 1 deletion src/main/scala/chiseltest/internal/ThreadedBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ trait ThreadedBackend[T <: Module] extends BackendInterface {

// noinspection ConvertExpressionToSAM
// TODO: code analysis suggests "Convert expression to Single Abstract Method", will that work?
val thread = new Thread(new Runnable {
val thread = Thread.ofVirtual().unstarted(new Runnable {
def run(): Unit = {
try {
waiting.acquire()
Expand Down

0 comments on commit 21efe83

Please sign in to comment.