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 77880 - Profiler profile itself when doing CPU profiling
Summary: Profiler profile itself when doing CPU profiling
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-14 10:11 UTC by Tomas Hurka
Modified: 2007-04-03 10:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (12.51 KB, text/plain)
2006-06-14 10:13 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2006-06-14 10:11:19 UTC
Profiler profile itself when doing CPU profiling with 'Profile All Classes'  class filter.
See following thread dump.
  
"Scanning Queue" daemon prio=1 tid=0x00002aaac823af70 nid=0x753c waiting for monitor entry 
[0x0000000041365000..0x0000000041366b30]
        at com.sun.tools.profiler.server.ProfilerInterface.firstTimeMethodInvokeHook(ProfilerInterface.java:
907)
        - waiting to lock <0x00002aaabc2bda08> (a java.lang.Object)
        at com.sun.tools.profiler.server.ProfilerInterface.access$000(ProfilerInterface.java:31)
        at com.sun.tools.profiler.server.ProfilerInterface$1.handleFirstTimeMethodInvoke
(ProfilerInterface.java:116)
        at com.sun.tools.profiler.server.ProfilerRuntimeCPUFullInstr.methodEntry
(ProfilerRuntimeCPUFullInstr.java:106)
        at java.util.Vector.add(Vector.java:743)
        - locked <0x00002aaabc2bdaf0> (a java.util.Vector)
        at com.sun.tools.profiler.server.ClassLoaderManager.registerLoader(ClassLoaderManager.java:105)
        - locked <0x00002aaab1ed2f78> (a java.lang.Class)
        at com.sun.tools.profiler.server.ClassLoaderManager.registerLoader(ClassLoaderManager.java:78)
        at com.sun.tools.profiler.server.ProfilerInterface.classLoadHook(ProfilerInterface.java:738)
        at org.netbeans.modules.javacore.scanning.ClassUpdater.getClassFile(ClassUpdater.java:236)
        at org.netbeans.modules.javacore.scanning.ClassUpdater.updateResources(ClassUpdater.java:126)
        at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:288)
        at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:246)
        at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:246)
        at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:246)
        at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:246)
        at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:246)
        at org.netbeans.modules.javacore.scanning.FileScanner.scan(FileScanner.java:176)
        at org.netbeans.modules.javacore.JMManager.scanFiles(JMManager.java:1173)
        at org.netbeans.modules.javacore.JMManager.resolveCPRoot(JMManager.java:1087)
        at org.netbeans.modules.javacore.JMManager.resolveCodebases(JMManager.java:861)
        at org.netbeans.modules.javacore.JMManager$2.run(JMManager.java:815)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:516)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:949)
Comment 1 Tomas Hurka 2006-06-14 10:13:03 UTC
Created attachment 31039 [details]
Thread dump
Comment 2 Tomas Hurka 2006-06-29 17:10:44 UTC
Fixed in trunk.
Comment 3 Tomas Hurka 2006-10-04 17:10:01 UTC
Fix merged to release55 branch.
Comment 4 Jiri Sedlacek 2006-10-04 17:14:52 UTC
Fix has been reviewed by me and is OK.
Comment 5 Tomas Hurka 2007-04-03 10:17:52 UTC
Verified.