src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp

Print this page




 448 
 449 /////////////////////////////////////////////////////////////////////////////
 450 // Implementations of atomic operations not supported by processors.
 451 //  -- http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Atomic-Builtins.html
 452 
 453 #ifndef _LP64
 454 extern "C" {
 455   long long unsigned int __sync_val_compare_and_swap_8(
 456     volatile void *ptr,
 457     long long unsigned int oldval,
 458     long long unsigned int newval) {
 459     ShouldNotCallThis();
 460   }
 461 };
 462 #endif // !_LP64
 463 
 464 #ifndef PRODUCT
 465 void os::verify_stack_alignment() {
 466 }
 467 #endif







 448 
 449 /////////////////////////////////////////////////////////////////////////////
 450 // Implementations of atomic operations not supported by processors.
 451 //  -- http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Atomic-Builtins.html
 452 
 453 #ifndef _LP64
 454 extern "C" {
 455   long long unsigned int __sync_val_compare_and_swap_8(
 456     volatile void *ptr,
 457     long long unsigned int oldval,
 458     long long unsigned int newval) {
 459     ShouldNotCallThis();
 460   }
 461 };
 462 #endif // !_LP64
 463 
 464 #ifndef PRODUCT
 465 void os::verify_stack_alignment() {
 466 }
 467 #endif
 468 
 469 int os::extra_bang_size_in_bytes() {
 470   // JDK-8050147 requires the full cache line bang for x86.
 471   return VM_Version::L1_line_size();
 472 }