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 254122

Summary: Incorrect reverse calls with merged threads
Product: profiler Reporter: Tomas Hurka <thurka>
Component: BaseAssignee: Jiri Sedlacek <jis>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: npss snapsot

Description Tomas Hurka 2015-08-04 11:56:55 UTC
Created attachment 155164 [details]
npss snapsot

Steps to reproduce:
1) open attached npss file
2) enable 'Reverse calls' views
3) disable 'Forward calls' views
4) open 'selected threads' popup
5) deselect and select 'main' thread
6) select 'merge selected threads'
7) find 'org.netbeans.spi.project.libraries.support.ForwardingLibraryImplementation.<loaded> method in 'Reverse calls'
8) expand ForwardingLibraryImplementation.<loaded> node
9) the reverse call below in incorrect
    org.openide.util.RequestProcessor$Processor.run ()
      org.openide.util.lookup.Lookups.executeWith ()
        org.netbeans.modules.openide.util.GlobalLookup.execute ()
          org.openide.util.RequestProcessor$Task.run ()
          ....

  Correct reverse call should be:
    sun.management.ThreadImpl.dumpAllThreads ()
      org.netbeans.test.ide.BlacklistedClassesHandlerSingleton.publish ()
        java.util.logging.Logger.log ()
          java.util.logging.Logger.doLog ()
           ....
Comment 1 Jiri Sedlacek 2015-08-06 21:27:46 UTC
All merged reverse calls are computed incorrectly.
Comment 2 Jiri Sedlacek 2015-08-06 21:30:35 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/15951168b22e.
Comment 3 Quality Engineering 2015-08-08 02:02:28 UTC
Integrated into 'main-silver', will be available in build *201508080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/15951168b22e
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #254122 - all PrestimeCPUCCTNode subclasses must override createCopy()