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 250572 - memory sampling does not work with JDK 9
Summary: memory sampling does not work with JDK 9
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2015-02-20 09:52 UTC by Tomas Hurka
Modified: 2015-03-17 12:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2015-02-20 09:52:56 UTC
Memory sampling does not work in JDK 9, since it does not contain tools.jar. Corresponding classes must be loaded by system classloader, which sees also classes, which were part of tools.jar in JDK 8 and older.
Comment 1 Tomas Hurka 2015-02-20 09:54:58 UTC
Steps to reproduce:
1) start profiled application on JDK 9
2) try to use memory sampling feature
Comment 2 Tomas Hurka 2015-02-20 12:54:16 UTC
Fixed in profiler-main

changeset:   283753:4eff5857031d
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Feb 20 13:52:39 2015 +0100
summary:     bugfix #250572, try to load VIRTUAL_MACHINE_CLASS and VIRTUAL_MACHINE_CLASS with system classloader, since JDK 9 does not have tools.jar
Comment 3 Quality Engineering 2015-02-23 02:25:06 UTC
Integrated into 'main-silver', will be available in build *201502230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4eff5857031d
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #250572, try to load VIRTUAL_MACHINE_CLASS and VIRTUAL_MACHINE_CLASS with system classloader, since JDK 9 does not have tools.jar