Skip to content

Commit

Permalink
QuadTreeEditExecutor: bump queue length to 16
Browse files Browse the repository at this point in the history
after a couple of reports of RejectedExecutionException, let's see if this
is just a matter of tuning and could be resolved with a little more
headroom
  • Loading branch information
risicle committed Sep 25, 2019
1 parent ab16e5a commit 19556c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public WritableRaster getWritableTile(int tileX, int tileY) {

private class QuadTreeEditExecutor extends ThreadPoolExecutor {
public QuadTreeEditExecutor() {
super(1, 1, 5, java.util.concurrent.TimeUnit.MINUTES, new ArrayBlockingQueue<Runnable>(8));
super(1, 1, 5, java.util.concurrent.TimeUnit.MINUTES, new ArrayBlockingQueue<Runnable>(16));
}

@Override
Expand Down

0 comments on commit 19556c9

Please sign in to comment.