Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/os.hpp @ 342:37f87013dfd8
6711316: Open source the Garbage-First garbage collector
Summary: First mercurial integration of the code for the Garbage-First garbage collector.
Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author | ysr |
---|---|
date | Thu, 05 Jun 2008 15:57:56 -0700 |
parents | fcbfc50865ab |
children | 1ee8caae33af |
comparison
equal
deleted
inserted
replaced
189:0b27f3512f9e | 342:37f87013dfd8 |
---|---|
103 | 103 |
104 // Interface to the performance counter | 104 // Interface to the performance counter |
105 static jlong elapsed_counter(); | 105 static jlong elapsed_counter(); |
106 static jlong elapsed_frequency(); | 106 static jlong elapsed_frequency(); |
107 | 107 |
108 // The "virtual time" of a thread is the amount of time a thread has | |
109 // actually run. The first function indicates whether the OS supports | |
110 // this functionality for the current thread, and if so: | |
111 // * the second enables vtime tracking (if that is required). | |
112 // * the third tells whether vtime is enabled. | |
113 // * the fourth returns the elapsed virtual time for the current | |
114 // thread. | |
115 static bool supports_vtime(); | |
116 static bool enable_vtime(); | |
117 static bool vtime_enabled(); | |
118 static double elapsedVTime(); | |
119 | |
108 // Return current local time in a string (YYYY-MM-DD HH:MM:SS). | 120 // Return current local time in a string (YYYY-MM-DD HH:MM:SS). |
109 // It is MT safe, but not async-safe, as reading time zone | 121 // It is MT safe, but not async-safe, as reading time zone |
110 // information may require a lock on some platforms. | 122 // information may require a lock on some platforms. |
111 static char* local_time_string(char *buf, size_t buflen); | 123 static char* local_time_string(char *buf, size_t buflen); |
112 // Fill in buffer with current local time as an ISO-8601 string. | 124 // Fill in buffer with current local time as an ISO-8601 string. |