JDK-7126480 : Make JVM start time in milliseconds since the Java epoch available
Type:Enhancement
Component:hotspot
Sub-Component:runtime
Affected Version:hs23
Priority:P4
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2012-01-02
Updated:2012-03-29
Resolved:2012-03-29
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.
SUGGESTED FIX
Class Management in management.cpp stores the jvm start time in a class static
called _begin_vm_creation_time. Rather than add an _vm_start_time_millis field
to class os, we can just add an accessor for _begin_vm_creation_time to class
Management and use the latter instead of a new os::vm_start_time_millis().
05-01-2012
EVALUATION
Ok.
02-01-2012
SUGGESTED FIX
Add a method os::vm_start_time_millis() that returns the appropriate value.
Use the same initial time as that used for os::elapsed_counter().