mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6711316: Open source the Garbage-First garbage collector
First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
This commit is contained in:
parent
39463bb3fc
commit
18f3386a98
215 changed files with 36088 additions and 1249 deletions
|
@ -105,6 +105,18 @@ class os: AllStatic {
|
|||
static jlong elapsed_counter();
|
||||
static jlong elapsed_frequency();
|
||||
|
||||
// The "virtual time" of a thread is the amount of time a thread has
|
||||
// actually run. The first function indicates whether the OS supports
|
||||
// this functionality for the current thread, and if so:
|
||||
// * the second enables vtime tracking (if that is required).
|
||||
// * the third tells whether vtime is enabled.
|
||||
// * the fourth returns the elapsed virtual time for the current
|
||||
// thread.
|
||||
static bool supports_vtime();
|
||||
static bool enable_vtime();
|
||||
static bool vtime_enabled();
|
||||
static double elapsedVTime();
|
||||
|
||||
// Return current local time in a string (YYYY-MM-DD HH:MM:SS).
|
||||
// It is MT safe, but not async-safe, as reading time zone
|
||||
// information may require a lock on some platforms.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue