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 133965 - Some classes aren't instrumented when using lazy instr.
Summary: Some classes aren't instrumented when using lazy instr.
Status: NEW
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-25 18:39 UTC by Pavel Flaska
Modified: 2011-11-02 20:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiler Snapshot 1 (89.26 KB, application/octet-stream)
2008-04-25 18:49 UTC, Pavel Flaska
Details
Profiler Snapshot 2 (698.24 KB, application/octet-stream)
2008-04-25 18:51 UTC, Pavel Flaska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Flaska 2008-04-25 18:39:07 UTC
Reproducible use-case:
1) Run IDE,
2) Open module registration,
3) open class org.netbeans.modules.registration.NbInstaller,
4) add restored method as a profiling root method.

5) Run another IDE with profiling agent (direct, local),
6) Attach profiler and take a snapshot,

7) in advanced setting, change the instrumentation schema to Total,
8) repeat the steps 5) and 6).

The snapshots are totally different.

JDK1.6.0_06, profiled NetBeans Nb6.1RC2, profiling NetBeans 080415 custom build, tested on Windows Vista.
Comment 1 Pavel Flaska 2008-04-25 18:49:04 UTC
Created attachment 60704 [details]
Profiler Snapshot 1
Comment 2 Pavel Flaska 2008-04-25 18:51:23 UTC
Created attachment 60705 [details]
Profiler Snapshot 2
Comment 3 Tomas Hurka 2009-05-07 17:05:13 UTC
I will try to fix it for NB 6.7
Comment 4 Tomas Hurka 2009-05-19 13:41:36 UTC
Most cases fixed, but there are still some minor problems. Lowering priority to P4 to track remaining problems.
changeset:   132060:c6ddd3d95d22
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue May 19 14:39:28 2009 +0200
summary:     bugfix #133965, countReachableScannableMethods() removed - instrumentClinit() used instead; RecursiveMethodInstrumentor.instrumentClinit 
removed; createInstrumentedMethodPack15(DynamicClassInfo ) removed; processReachableMethods() fixed to invoke locateAndMarkMethodReachable() when 
class is loaded

Comment 5 Quality Engineering 2009-05-20 07:26:45 UTC
Integrated into 'main-golden', will be available in build *200905200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c6ddd3d95d22
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #133965, countReachableScannableMethods() removed - instrumentClinit() used instead; RecursiveMethodInstrumentor.instrumentClinit removed; createInstrumentedMethodPack15(DynamicClassInfo ) removed; processReachableMethods() fixed to invoke locateAndMarkMethodReachable() when class is loaded