From 76c8a8ced5adde9b76e0bdda3ad376cda815b2d7 Mon Sep 17 00:00:00 2001 From: Mumfrey Date: Mon, 3 Oct 2016 16:25:10 +0100 Subject: [PATCH] Fix async decompiler choking if too many classes submitted too quickly --- .../asm/mixin/transformer/debug/RuntimeDecompilerAsync.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fernflower/java/org/spongepowered/asm/mixin/transformer/debug/RuntimeDecompilerAsync.java b/src/fernflower/java/org/spongepowered/asm/mixin/transformer/debug/RuntimeDecompilerAsync.java index e0ded5f7..5feaadb8 100644 --- a/src/fernflower/java/org/spongepowered/asm/mixin/transformer/debug/RuntimeDecompilerAsync.java +++ b/src/fernflower/java/org/spongepowered/asm/mixin/transformer/debug/RuntimeDecompilerAsync.java @@ -27,7 +27,7 @@ package org.spongepowered.asm.mixin.transformer.debug; import java.io.File; import java.lang.Thread.UncaughtExceptionHandler; import java.util.concurrent.BlockingQueue; -import java.util.concurrent.SynchronousQueue; +import java.util.concurrent.LinkedBlockingQueue; /** * Asynchronous decompiler, runs mixin export task in a separate thread to avoid @@ -35,7 +35,7 @@ import java.util.concurrent.SynchronousQueue; */ public class RuntimeDecompilerAsync extends RuntimeDecompiler implements Runnable, UncaughtExceptionHandler { - private final BlockingQueue queue = new SynchronousQueue(); + private final BlockingQueue queue = new LinkedBlockingQueue(); private final Thread thread;