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 255483

Summary: CPU sampling does not work
Product: platform Reporter: Jiri Skrivanek <jskrivanek>
Component: JDK ProblemsAssignee: Antonin Nebuzelsky <anebuzelsky>
Status: NEW ---    
Severity: normal CC: issues, jkovalsky, thurka
Priority: P2 Keywords: JDK_9, NO81
Version: 8.1   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:
Attachments: Crash log.

Description Jiri Skrivanek 2015-09-22 12:09:25 UTC
Created attachment 156348 [details]
Crash log.

It is not possible to profile simle java application on JDK 9. To reproduce:

- run IDE with secret option -J-Dorg.netbeans.profiler.separateConsole=true
- create new java project
- add some code to main class, e.g.

    public static void main(String[] args) {
        for (int i = 0; i < 10000; i++) {
            m1();
        }
    }
    
    public static void m1() {
        for (int i = 0; i < 100000; i++) {
            double d = Math.cos(Math.random());
            System.out.println("d=" + d);
        }
    }

- right-click project node and choose Profile
- select Methods
- click Profile but it ends with EXCEPTION_ACCESS_VIOLATION

Product Version: NetBeans Dev JDK9 branch (Build 20150918-951c25ccfea0)
Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
System: Windows 8.1 version 6.3 running on amd64; Cp1250; en_US (nb)