From eea851ed0fe295f69a001313d7f420b6b802e364 Mon Sep 17 00:00:00 2001 From: Adam Domurad Date: Wed, 6 Feb 2013 09:18:38 -0500 Subject: Provide names for unnamed threads for better debugging --- plugin/icedteanp/java/sun/applet/PluginMessageConsumer.java | 6 +++++- plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java | 1 + plugin/icedteanp/java/sun/applet/PluginStreamHandler.java | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'plugin') diff --git a/plugin/icedteanp/java/sun/applet/PluginMessageConsumer.java b/plugin/icedteanp/java/sun/applet/PluginMessageConsumer.java index e6968b5..ec0a6e7 100644 --- a/plugin/icedteanp/java/sun/applet/PluginMessageConsumer.java +++ b/plugin/icedteanp/java/sun/applet/PluginMessageConsumer.java @@ -1,4 +1,4 @@ -/* VoidPluginCallRequest -- represent Java-to-JavaScript requests +/* Copyright (C) 2008 Red Hat This file is part of IcedTea. @@ -131,6 +131,10 @@ class PluginMessageConsumer { protected class ConsumerThread extends Thread { + public ConsumerThread() { + super("PluginMessageConsumer.ConsumerThread"); + } + /** * Scans the readQueue for priority messages and brings them to the front */ diff --git a/plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java b/plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java index 01f9c24..31e9e27 100644 --- a/plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java +++ b/plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java @@ -50,6 +50,7 @@ class PluginMessageHandlerWorker extends Thread { PluginMessageConsumer consumer, PluginStreamHandler streamHandler, int id, boolean isPriorityWorker) { + super("PluginMessageHandlerWorker" + id); this.id = id; this.streamHandler = streamHandler; diff --git a/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java b/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java index 0bb1f01..06361e8 100644 --- a/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java +++ b/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java @@ -1,4 +1,4 @@ -/* VoidPluginCallRequest -- represent Java-to-JavaScript requests +/* Copyright (C) 2008 Red Hat This file is part of IcedTea. @@ -81,7 +81,7 @@ public class PluginStreamHandler { public void startProcessing() { - Thread listenerThread = new Thread() { + Thread listenerThread = new Thread("PluginStreamHandlerListenerThread") { public void run() { -- cgit v1.2.3