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 - CPU sampling does not work
Summary: CPU sampling does not work
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.1
Hardware: PC Windows 8.1
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: JDK_9, NO81
Depends on:
Blocks:
 
Reported: 2015-09-22 12:09 UTC by Jiri Skrivanek
Modified: 2015-09-22 12:23 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Crash log. (39.51 KB, text/plain)
2015-09-22 12:09 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
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)