diff options
author | Adam Domurad <[email protected]> | 2013-05-17 12:31:32 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-05-17 12:31:32 -0400 |
commit | 083cb5d389854523f8a5378a23a6a3d775b0e1ae (patch) | |
tree | d3e2231714a7f2da88f0a1119e087c72ccc52fb9 /plugin | |
parent | ba2f804b7a1d4b8a551daa8c12bf3a7d7e59dbae (diff) |
Fix PR854: Resizing an applet several times causes 100% CPU load
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/icedteanp/java/sun/applet/PluginAppletViewer.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java index 1f56037..3feedd6 100644 --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java @@ -665,18 +665,7 @@ public class PluginAppletViewer extends XEmbeddedFrame if (message.startsWith("width")) { // Wait for panel to come alive - long maxTimeToSleep = APPLET_TIMEOUT; - statusLock.lock(); - try { - while (!status.get(identifier).equals(PAV_INIT_STATUS.INIT_COMPLETE) && - maxTimeToSleep > 0) { - maxTimeToSleep -= waitTillTimeout(statusLock, initComplete, - maxTimeToSleep); - } - } - finally { - statusLock.unlock(); - } + waitForAppletInit(panel); // 0 => width, 1=> width_value, 2 => height, 3=> height_value String[] dimMsg = message.split(" "); |