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:
Karen Kinnear 2012-01-01 11:17:59 -05:00 committed by Paul Hohensee
parent 2b6f4a741d
commit c323bcdca8
16 changed files with 366 additions and 46 deletions

View file

@ -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.