This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 30419 - Massive memory leak in Actions
Summary: Massive memory leak in Actions
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
: 30420 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-28 11:52 UTC by Petr Nejedly
Modified: 2008-12-23 12:54 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2003-01-28 11:56:31 UTC
During separation of openide, you've changed
registration of keymapListeners in o.o.awt.Actions
from being WeakListeners on Actions$GlobalKeymapL
to strong wrapped Observers on NbKeymap.
This causes severe memory leak as every
constructed Bridge is then strongly referenced
from NbKeymap.
Comment 1 _ ttran 2003-01-28 12:07:58 UTC
*** Issue 30420 has been marked as a duplicate of this issue. ***
Comment 2 Jesse Glick 2003-01-28 20:47:18 UTC
Should be easy to fix. In fact thanks to pzavadsky's actions system
work, there is no need to listen to the keymap at all; can directly
listen to Action.ACCELERATOR_KEY (I hope - haven't tried it).
Comment 3 Jesse Glick 2003-01-29 01:31:22 UTC
Hopefully fixed. At least no longer uses that listener.

committed     Up-To-Date  1.79       
openide/src/org/openide/awt/Actions.java
Comment 4 Petr Nejedly 2003-02-11 14:51:31 UTC
OK, verified by hprof/HAT