---
title: "Discussion on \"Virtual Thread Pinning in Java 25: What Still Pins After JEP 491\" | Hashnode"
description: "Discussion on \"Virtual Thread Pinning in Java 25: What Still Pins After JEP 491\". Java 24+ fixed synchronized pinning, but class initializers still pin virtual threads. A JDK 21 vs 25 test, JFR detection, and the fix."
url: "https://hashnode.com/posts/virtual-thread-pinning-java-25/6ae06ecd08b41add23f0fd2d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Virtual Thread Pinning in Java 25: What Still Pins After JEP 491](https://gowthammuthuvel.hashnode.dev/virtual-thread-pinning-java-25?utm_source=hashnode&utm_medium=feed)

Java 24+ fixed synchronized pinning, but class initializers still pin virtual threads. A JDK 21 vs 25 test, JFR detection, and the fix.

Oct 27 · 10 min read · gowthammuthuvel.hashnode.dev  
Updated Nov 12  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#concurrency](https://hashnode.com/tag/concurrency)
-   [#jvm](https://hashnode.com/tag/jvm)
-   [#virtual-threads](https://hashnode.com/tag/virtual-threads)
-   [#java25](https://hashnode.com/tag/java25)

## Written by

[Gowtham Muthuvel](https://hashnode.com/@GowthamMuthuvel)

@GowthamMuthuvel

  
[View profile](https://hashnode.com/@GowthamMuthuvel)

Full-stack developer | Java, Spring Boot, React | Senior Backend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
