Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2010-01-14 18:33:10 +0000
committerThomas Watson2010-01-14 18:33:10 +0000
commitd1015397709fa16837f9a60a90bac791ef2fa4fc (patch)
tree6a88cd67ac3a2f690735c162cbeb28b1a14cab8e
parentf583417244da50f64a5b1630cbbf439b054856d7 (diff)
downloadrt.equinox.framework-d1015397709fa16837f9a60a90bac791ef2fa4fc.tar.gz
rt.equinox.framework-d1015397709fa16837f9a60a90bac791ef2fa4fc.tar.xz
rt.equinox.framework-d1015397709fa16837f9a60a90bac791ef2fa4fc.zip
Bug 299589 EventManager.EventThread.run holding excess memoryR35x_v20100114
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/eventmgr/EventManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/eventmgr/EventManager.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/eventmgr/EventManager.java
index d42cdded5..2dc7188c7 100644
--- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/eventmgr/EventManager.java
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/eventmgr/EventManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2009 IBM Corporation and others.
+ * Copyright (c) 2003, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -335,6 +335,10 @@ public class EventManager {
return;
}
EventManager.dispatchEvent(item.listeners, item.dispatcher, item.action, item.object);
+ // Bug 299589: since the call to getNextEvent() will eventually block for a long time, we need to make sure that the 'item'
+ // variable is cleared of the previous value before the call to getNextEvent(). See VM SPec 2.5.7 for why the compiler
+ // will not automatically clear this variable for each loop iteration.
+ item = null;
}
} catch (RuntimeException e) {
if (EventManager.DEBUG) {

Back to the top