[Bug 225418] New: Schedule source roots refresh to one thread only.

  • From:
  • To:
  • Subject: [Bug 225418] New: Schedule source roots refresh to one thread only.
  • Date: Mon, 28 Jan 2013 15:35:54 +0000
  • Auto-submitted: auto-generated

http://netbeans.org/bugzilla/show_bug.cgi?id=225418

             Bug #: 225418
        Issue Type: DEFECT
           Summary: Schedule source roots refresh to one thread only.
    Classification: Unclassified
           Product: debugger
           Version: 7.3
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: PERFORMANCE
          Priority: P3
         Component: Java
        AssignedTo: 

        ReportedBy: 

         QAContact: 



As can be seen from
http://bugzilla-attachments-225311.netbeans.org/bugzilla/attachment.cgi?id=130677,
there can be multiple threads doing the same expensive work - refreshing 
source
roots and creating the new class path.

This can be optimized to schedule the work to just one thread, that would be
postponed as new requests for refresh come.

"JPDA Debugger" daemon prio=2 tid=0x0dbee800 nid=0x1048 runnable [0x077bf000]
   java.lang.Thread.State: RUNNABLE
    at java.io.WinNTFileSystem.canonicalize0(Native Method)
    at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:414)
    at java.io.File.getCanonicalPath(File.java:589)
    at java.io.File.getCanonicalFile(File.java:614)
    at
org.openide.filesystems.FileUtil.normalizeFileOnWindows(FileUtil.java:1707)
    at org.openide.filesystems.FileUtil.normalizeFileImpl(FileUtil.java:1598)
    at 
org.openide.filesystems.FileUtil.normalizeFileCached(FileUtil.java:1579)
    at org.openide.filesystems.FileUtil.normalizeFile(FileUtil.java:1561)
    at org.openide.filesystems.FileUtil.toFile(FileUtil.java:826)
    at
org.netbeans.core.startup.layers.ArchiveURLMapper.getFileObjects(ArchiveURLMapper.java:134)
    at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:213)
    at
org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl.createClassPath(SourcePathProviderImpl.java:1364)
    at
org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl.access$400(SourcePathProviderImpl.java:113)
    at
org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl$PathRegistryListener.rootsChanged(SourcePathProviderImpl.java:1578)
    - locked <0x320aaee0> (a
org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl)
    at
org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl$PathRegistryListener.access$200(SourcePathProviderImpl.java:1467)
    at
org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl$PathRegistryListener$1.run(SourcePathProviderImpl.java:1480)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
    at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2048)

-- 
Configure bugmail: http://netbeans.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


[Bug 225418] New: Schedule source roots refresh to one thread only.

mentlicher 01/28/2013

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close