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 28349 - Stop using periodic tasks (DataFinalizer)
Summary: Stop using periodic tasks (DataFinalizer)
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 34165
  Show dependency tree
 
Reported: 2002-10-30 12:47 UTC by Petr Nejedly
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2002-10-30 12:47:35 UTC
Periodic tasks (running in background even if the
user don't touch the IDE) are generally evil and
we should eliminate them as much as possible.

one of such periodic tasks is
ParsingSupport.DataFinalizer, which is nothing
more than a wrapper around a ReferenceQueue
doing some cleanup. The same functionality can be
achieved using the active reference queue from
utilities.

Please rewrite the DataFinalizer to it.
Comment 1 Svata Dedic 2003-01-21 16:26:04 UTC
Fixed in trunk:

/cvs/java/src/org/netbeans/modules/java/parser/ParsingSupport.java,v 
<--  ParsingSupport.java
new revision: 1.36; previous revision: 1.35
Comment 2 Petr Nejedly 2003-01-29 13:15:50 UTC
OK, the DataFinalizer is now using the ActiveReferenceQueue,
the periodic task is gone, but WTH you left there
all the unused garbage like refQueue and referenceSupportMap?
Comment 3 Quality Engineering 2007-09-20 09:55:13 UTC
Reorganization of java component