[CONJ-1115] Make connector become virtual-thread friendly Created: 2023-10-20  Updated: 2023-10-25  Resolved: 2023-10-25

Status: Closed
Project: MariaDB Connector/J
Component/s: performance
Affects Version/s: None
Fix Version/s: 3.3.0

Type: Task Priority: Critical
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Since java now permits virtual threads, Connector is mostly compatible with those, but there is a few places where connector with synchronize use that will prevent virtual thread to be use with maximum speed.

Like java did internally with BufferedInputStream, BufferedOutputStream, BufferedReader, BufferedWriter, PrintStream, and PrintWriter modified to use an explicit lock rather than a monitor when used directly. Driver default implementation ReadAheadBufferedStream must use explicit lock.


Generated at Thu Feb 08 03:20:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.