mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
7125934: Add a fast unordered timestamp capability to Hotspot on x86/x64
Add rdtsc detection and inline generation. Reviewed-by: kamg, dholmes
This commit is contained in:
parent
2b6f4a741d
commit
c323bcdca8
16 changed files with 366 additions and 46 deletions
|
@ -82,6 +82,12 @@ julong os::num_frees = 0; // # of calls to free
|
|||
julong os::free_bytes = 0; // # of bytes freed
|
||||
#endif
|
||||
|
||||
void os_init_globals() {
|
||||
// Called from init_globals().
|
||||
// See Threads::create_vm() in thread.cpp, and init.cpp.
|
||||
os::init_globals();
|
||||
}
|
||||
|
||||
// Fill in buffer with current local time as an ISO-8601 string.
|
||||
// E.g., yyyy-mm-ddThh:mm:ss-zzzz.
|
||||
// Returns buffer, or NULL if it failed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue