Mercurial > hg > truffle
diff src/os_cpu/solaris_x86/vm/solaris_x86_64.il @ 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 | 0a8e0d4345b3 |
children | da4be62fb889 |
line wrap: on
line diff
--- a/src/os_cpu/solaris_x86/vm/solaris_x86_64.il Mon Dec 26 20:36:01 2011 -0500 +++ b/src/os_cpu/solaris_x86/vm/solaris_x86_64.il Sun Jan 01 11:17:59 2012 -0500 @@ -30,12 +30,19 @@ movq %fs:0, %rax .end - // Get the frame pointer from current frame. + // Get current fp .inline _get_current_fp,0 .volatile movq %rbp, %rax .end + // Support for os::rdtsc() + .inline _raw_rdtsc,0 + rdtsc + salq $32, %rdx + orq %rdx, %rax + .end + // Support for jint Atomic::add(jint add_value, volatile jint* dest) .inline _Atomic_add,2 movl %edi, %eax // save add_value for return