Mercurial > hg > graal-jvmci-8
comparison src/os_cpu/windows_x86/vm/os_windows_x86.cpp @ 11173:6b0fd0964b87
Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 31 Jul 2013 11:00:54 +0200 |
parents | b8f261ba79c6 980532a806a5 |
children | cefad50507d8 |
comparison
equal
deleted
inserted
replaced
10912:4ea54634f03e | 11173:6b0fd0964b87 |
---|---|
516 #endif | 516 #endif |
517 | 517 |
518 st->cr(); | 518 st->cr(); |
519 } | 519 } |
520 | 520 |
521 extern "C" int SafeFetch32 (int * adr, int Err) { | |
522 int rv = Err ; | |
523 _try { | |
524 rv = *((volatile int *) adr) ; | |
525 } __except(EXCEPTION_EXECUTE_HANDLER) { | |
526 } | |
527 return rv ; | |
528 } | |
529 | |
530 extern "C" intptr_t SafeFetchN (intptr_t * adr, intptr_t Err) { | |
531 intptr_t rv = Err ; | |
532 _try { | |
533 rv = *((volatile intptr_t *) adr) ; | |
534 } __except(EXCEPTION_EXECUTE_HANDLER) { | |
535 } | |
536 return rv ; | |
537 } | |
538 | |
539 extern "C" int SpinPause () { | 521 extern "C" int SpinPause () { |
540 #ifdef AMD64 | 522 #ifdef AMD64 |
541 return 0 ; | 523 return 0 ; |
542 #else | 524 #else |
543 // pause == rep:nop | 525 // pause == rep:nop |