< prev index next >

src/share/vm/utilities/copy.hpp

Print this page




 318 
 319   static void assert_params_aligned(HeapWord* to) {
 320 #ifdef ASSERT
 321     if (mask_bits((uintptr_t)to, BytesPerLong-1) != 0)
 322       basic_fatal("not long aligned");
 323 #endif
 324   }
 325 
 326   static void assert_byte_count_ok(size_t byte_count, size_t unit_size) {
 327 #ifdef ASSERT
 328     if ((size_t)round_to(byte_count, unit_size) != byte_count) {
 329       basic_fatal("byte count must be aligned");
 330     }
 331 #endif
 332   }
 333 
 334   // Platform dependent implementations of the above methods.
 335 #ifdef TARGET_ARCH_x86
 336 # include "copy_x86.hpp"
 337 #endif



 338 #ifdef TARGET_ARCH_sparc
 339 # include "copy_sparc.hpp"
 340 #endif
 341 #ifdef TARGET_ARCH_zero
 342 # include "copy_zero.hpp"
 343 #endif
 344 #ifdef TARGET_ARCH_arm
 345 # include "copy_arm.hpp"
 346 #endif
 347 #ifdef TARGET_ARCH_ppc
 348 # include "copy_ppc.hpp"
 349 #endif
 350 
 351 };
 352 
 353 #endif // SHARE_VM_UTILITIES_COPY_HPP


 318 
 319   static void assert_params_aligned(HeapWord* to) {
 320 #ifdef ASSERT
 321     if (mask_bits((uintptr_t)to, BytesPerLong-1) != 0)
 322       basic_fatal("not long aligned");
 323 #endif
 324   }
 325 
 326   static void assert_byte_count_ok(size_t byte_count, size_t unit_size) {
 327 #ifdef ASSERT
 328     if ((size_t)round_to(byte_count, unit_size) != byte_count) {
 329       basic_fatal("byte count must be aligned");
 330     }
 331 #endif
 332   }
 333 
 334   // Platform dependent implementations of the above methods.
 335 #ifdef TARGET_ARCH_x86
 336 # include "copy_x86.hpp"
 337 #endif
 338 #ifdef TARGET_ARCH_aarch64
 339 # include "copy_aarch64.hpp"
 340 #endif
 341 #ifdef TARGET_ARCH_sparc
 342 # include "copy_sparc.hpp"
 343 #endif
 344 #ifdef TARGET_ARCH_zero
 345 # include "copy_zero.hpp"
 346 #endif
 347 #ifdef TARGET_ARCH_arm
 348 # include "copy_arm.hpp"
 349 #endif
 350 #ifdef TARGET_ARCH_ppc
 351 # include "copy_ppc.hpp"
 352 #endif
 353 
 354 };
 355 
 356 #endif // SHARE_VM_UTILITIES_COPY_HPP
< prev index next >