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

Summary: Stop using periodic tasks (DataFinalizer)
Product: java Reporter: Petr Nejedly <pnejedly>
Component: UnsupportedAssignee: issues@java <issues>
Status: VERIFIED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P3    
Version: 3.x   
Hardware: Sun   
OS: Solaris   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 34165    

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