mybatis/mybatis-3

thread pinning virtual thread

ramarro123 opened this issue · 2 comments

hello,

one of the guideline of project loom /virtual thread now in jdk21 is to avoid using synchronized block (and use lock) due to thread pinning issue and avoid deadlock or starvation of "worker" thread that run the virtual thread.

do you have any plan to support virtual thread in mybatis? i see a few synchronized block expecially in cache that should be replaced with a reentrant lock.

it's that something you are considering and think it's worthy?

Hello @ramarro123 ,

There is #3017 , but it is still a draft.

Oh cool didn't noticed🤣👍