Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce Java 21 Virtual Thread Pinning in IO operations #2553

Merged
merged 2 commits into from
May 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: cleanup
  • Loading branch information
BenWhitehead committed May 17, 2024
commit fff6944130c67824fea23b2504e97e6217b17dc8
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private AsyncAppendingQueue(
lock = new ReentrantLock();
}

synchronized AsyncAppendingQueue<T> append(ApiFuture<T> value) throws ShortCircuitException {
AsyncAppendingQueue<T> append(ApiFuture<T> value) throws ShortCircuitException {
lock.lock();
try {
checkState(state.isOpen(), "already closed");
Expand Down Expand Up @@ -124,7 +124,7 @@ T await() {
}

@Override
public synchronized void close() {
public void close() {
lock.lock();
try {
if (!state.isOpen()) {
Expand Down
Loading