comparison src/share/vm/runtime/os.cpp @ 4749:7ab5f6318694

7125934: Add a fast unordered timestamp capability to Hotspot on x86/x64 Summary: Add rdtsc detection and inline generation. Reviewed-by: kamg, dholmes Contributed-by: karen.kinnear@oracle.com
author phh
date Sun, 01 Jan 2012 11:17:59 -0500
parents 436b4a3231bf
children 94ec88ca68e2
comparison
equal deleted inserted replaced
4732:4ec93d767458 4749:7ab5f6318694
79 julong os::num_mallocs = 0; // # of calls to malloc/realloc 79 julong os::num_mallocs = 0; // # of calls to malloc/realloc
80 julong os::alloc_bytes = 0; // # of bytes allocated 80 julong os::alloc_bytes = 0; // # of bytes allocated
81 julong os::num_frees = 0; // # of calls to free 81 julong os::num_frees = 0; // # of calls to free
82 julong os::free_bytes = 0; // # of bytes freed 82 julong os::free_bytes = 0; // # of bytes freed
83 #endif 83 #endif
84
85 void os_init_globals() {
86 // Called from init_globals().
87 // See Threads::create_vm() in thread.cpp, and init.cpp.
88 os::init_globals();
89 }
84 90
85 // Fill in buffer with current local time as an ISO-8601 string. 91 // Fill in buffer with current local time as an ISO-8601 string.
86 // E.g., yyyy-mm-ddThh:mm:ss-zzzz. 92 // E.g., yyyy-mm-ddThh:mm:ss-zzzz.
87 // Returns buffer, or NULL if it failed. 93 // Returns buffer, or NULL if it failed.
88 // This would mostly be a call to 94 // This would mostly be a call to