JDK-8143297 : Nashorn compilation time reported in nanoseconds
Type:Bug
Component:core-libs
Sub-Component:jdk.nashorn
Affected Version:8u60,9
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2015-11-19
Updated:2016-04-27
Resolved:2015-11-19
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
With the --log=compiler,time option enabled, compilation times are reported in nanoseconds, leading to unreasonably large numbers. The fix is to apply TimeUnit.NANOSECONDS.toMillis() in the place where the compiler logs its timing characteristics.