thread pinning virtual thread
ramarro123 opened this issue · 2 comments
ramarro123 commented
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?
harawata commented
Hello @ramarro123 ,
There is #3017 , but it is still a draft.
ramarro123 commented
Oh cool didn't noticed🤣👍