-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37c65bd
commit b8ea361
Showing
1 changed file
with
13 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
= Clojure 1.12.0-alpha5 | ||
Alex Miller | ||
2023-10-20 | ||
:jbake-type: post | ||
|
||
Clojure 1.12.0-alpha5 is now available and we encourage you to try it and give us your feedback! | ||
|
||
== Avoid user code with I/O under synchronized blocks | ||
|
||
Java 21 LTS introduced virtual threads (aka Project Loom). Virtual threads may be paused and resumed and cooperate with many blocking operations in the JDK - I/O, ReentrantLock, etc. However, Java 21 does not allow pausing of synchronization on object monitors (synchronized) and will thus "pin" the virtual thread to a carrier thread if blocking while synchronized. | ||
|
||
This release modifies `lazy-seq` and `delay` to use ReentrantLock instead of synchronized to avoid this issue. | ||
|