Closed jchrys closed 9 months ago
Motivation: Synchronized statements tend to pin virtual threads to carrier threads.
Modification: Replaced synchronized statements with ReentrantLock
Result: Loom-friendly
After this PR is merged, we can consider removing RequestQueue.requireDisposed and RequestQueue.disposed. This is probably over-designed.
RequestQueue.requireDisposed
RequestQueue.disposed
Motivation: Synchronized statements tend to pin virtual threads to carrier threads.
Modification: Replaced synchronized statements with ReentrantLock
Result: Loom-friendly