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 180264 - Debugger properties read on start
Summary: Debugger properties read on start
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: Other Linux
: P2 normal (vote)
Assignee: Daniel Prusa
URL:
Keywords: PERFORMANCE, REGRESSION
Depends on:
Blocks:
 
Reported: 2010-02-04 03:49 UTC by Jaroslav Tulach
Modified: 2010-02-08 21:41 UTC (History)
0 users

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 Jaroslav Tulach 2010-02-04 03:49:08 UTC
While processing the white list of loaded classes I noticed, that on first start, without any attempt to use debugger following classes are loaded. Please delay loading of debugger settings & co until the debugger is really used.

    org.netbeans.api.debugger.Properties
    org.netbeans.api.debugger.Properties$DelegatingProperties
    org.netbeans.api.debugger.Properties$Initializer
    org.netbeans.api.debugger.Properties$PrimitiveRegister
    org.netbeans.api.debugger.Properties$PropertiesImpl
    org.netbeans.api.debugger.Properties$PropertiesImpl$InitializerHolder
    org.netbeans.api.debugger.Properties$PropertiesImpl$ReaderHolder
    org.netbeans.api.debugger.Properties$PropertiesImpl$ServicesHolder
    org.netbeans.api.debugger.Properties$Reader
    org.netbeans.debugger.registry.ContextAwareServiceHandler

The sample creation stack trace is:

org.netbeans.modules.debugger.ui.actions.DebugMainProjectAction$AttachHistorySupport.computeItems(DebugMainProjectAction.java:209) org.netbeans.modules.debugger.ui.actions.DebugMainProjectAction$AttachHistorySupport.init(DebugMainProjectAction.java:201) org.netbeans.modules.debugger.ui.actions.DebugMainProjectAction.getToolbarPresenter(DebugMainProjectAction.java:170

If I understand correctly what is wrong, then I suggest to leave the actual computation of the previous actions until it is really needed and assume that there will be at least one initially.

More info about running white list tests is at bottom of
http://wiki.netbeans.org/FitnessViaWhiteAndBlackList
Comment 1 Jaroslav Tulach 2010-02-04 03:59:07 UTC
I've added these classes to whitelist for now (remove them when fixed):
http://hg.netbeans.org/ergonomics/rev/548e1b63f8d7
Comment 2 Daniel Prusa 2010-02-07 09:42:27 UTC
Fixed.
http://hg.netbeans.org/main/rev/28161fdc04d7

Related classes removed from whitelist.
http://hg.netbeans.org/main/rev/8db4fa792794
Comment 3 Quality Engineering 2010-02-08 21:41:59 UTC
Integrated into 'main-golden', will be available in build *201002090200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/28161fdc04d7
User: Daniel Prusa <dprusa@netbeans.org>
Log: #180264: Debugger properties read on start