This repository contains a fork of HikariCP that includes changes from merge request #2055 to add support for Java 21 virtual threads.
HikariCP is a solid, high-performance JDBC connection pool. This fork specifically integrates a proposed enhancement to support Java's virtual thread model introduced in Java 21, making it suitable for applications leveraging the new concurrency model in Java.
- Java Version: This version of HikariCP is compatible only with Java 21 and above due to its reliance on virtual threads.
- Database Compatibility: It maintains compatibility with databases supported by the original HikariCP.
It is anticipated that future releases of Java, specifically Java 23, will address the current issues with virtual thread pinning at synchronized blocks (more information about the issue could be found here). Once these improvements are implemented, users are encouraged to transition back to the official release of HikariCP. This would ensure compatibility with the latest Java standards and security enhancements, along with receiving ongoing support and updates from the HikariCP community.
Stay tuned to the official HikariCP repository and Java release notes for updates on these changes. Using the official release is recommended as soon as it fully supports the enhanced concurrency model of Java 23 and beyond.