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.
Summary: | MemoryValidationTest.testGCDocuments failure | ||
---|---|---|---|
Product: | platform | Reporter: | David Strupl <dstrupl> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jglick, saubrecht |
Priority: | P2 | Keywords: | TEST |
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 178071 |
Description
David Strupl
2009-12-14 06:45:01 UTC
looks like a bug in the test, sun.awt.motif.MFramePeer.allFrames should be cleared. reassigning to the author of the test for evaluation I guess P2 after hotfix in 94e7c9950c88. Why should allFrames be cleared? It is a potential source of actual memory leaks. In this case, what is held is simply the NB main window, which is certainly not about to be GC'd. cleanWellKnownStaticFields seems to be used only for references which you would expect normal GUI activity to change quickly. Possibly the test should be clearing the mouseEventTarget, and perhaps other Component-typed fields, in the LightweightDispatcher for each native window. Probably best for someone from window system to confirm this and test it. i modified the test to clear 'dispatcher' field in opened Frames and testGCDocuments passed on my laptop core-main 890a92acb3ca Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/890a92acb3ca User: S. Aubrecht <saubrecht@netbeans.org> Log: #178592 - clear 'dispatcher' field in opened Frames to remove potential references to editor windows |