src/hotspot/os_cpu/linux_arm/copy_linux_arm.inline.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Sdiff src/hotspot/os_cpu/linux_arm

src/hotspot/os_cpu/linux_arm/copy_linux_arm.inline.hpp

Print this page




  41   pd_conjoint_words(from, to, count);
  42 }
  43 
  44 static void pd_aligned_disjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
  45   pd_disjoint_words(from, to, count);
  46 }
  47 
  48 static void pd_conjoint_bytes(const void* from, void* to, size_t count) {
  49   memmove(to, from, count);
  50 }
  51 
  52 static void pd_conjoint_bytes_atomic(const void* from, void* to, size_t count) {
  53   pd_conjoint_bytes(from, to, count);
  54 }
  55 
  56 static void pd_conjoint_jshorts_atomic(const jshort* from, jshort* to, size_t count) {
  57   _Copy_conjoint_jshorts_atomic(from, to, count * BytesPerShort);
  58 }
  59 
  60 static void pd_conjoint_jints_atomic(const jint* from, jint* to, size_t count) {
  61 #ifdef AARCH64
  62   _Copy_conjoint_jints_atomic(from, to, count * BytesPerInt);
  63 #else
  64   assert(HeapWordSize == BytesPerInt, "heapwords and jints must be the same size");
  65   // pd_conjoint_words is word-atomic in this implementation.
  66   pd_conjoint_words((const HeapWord*)from, (HeapWord*)to, count);
  67 #endif
  68 }
  69 
  70 static void pd_conjoint_jlongs_atomic(const jlong* from, jlong* to, size_t count) {
  71 #ifdef AARCH64
  72   assert(HeapWordSize == BytesPerLong, "64-bit architecture");
  73   pd_conjoint_words((const HeapWord*)from, (HeapWord*)to, count);
  74 #else
  75   _Copy_conjoint_jlongs_atomic(from, to, count * BytesPerLong);
  76 #endif
  77 }
  78 
  79 static void pd_conjoint_oops_atomic(const oop* from, oop* to, size_t count) {
  80 #ifdef AARCH64
  81   if (UseCompressedOops) {
  82     assert(BytesPerHeapOop == BytesPerInt, "compressed oops");
  83     pd_conjoint_jints_atomic((const jint*)from, (jint*)to, count);
  84   } else {
  85     assert(BytesPerHeapOop == BytesPerLong, "64-bit architecture");
  86     pd_conjoint_jlongs_atomic((const jlong*)from, (jlong*)to, count);
  87   }
  88 #else
  89   assert(BytesPerHeapOop == BytesPerInt, "32-bit architecture");
  90   pd_conjoint_jints_atomic((const jint*)from, (jint*)to, count);
  91 #endif
  92 }
  93 
  94 static void pd_arrayof_conjoint_bytes(const HeapWord* from, HeapWord* to, size_t count) {
  95   pd_conjoint_bytes_atomic((const void*)from, (void*)to, count);
  96 }
  97 
  98 static void pd_arrayof_conjoint_jshorts(const HeapWord* from, HeapWord* to, size_t count) {
  99   pd_conjoint_jshorts_atomic((const jshort*)from, (jshort*)to, count);
 100 }
 101 
 102 static void pd_arrayof_conjoint_jints(const HeapWord* from, HeapWord* to, size_t count) {
 103   pd_conjoint_jints_atomic((const jint*)from, (jint*)to, count);
 104 }
 105 
 106 static void pd_arrayof_conjoint_jlongs(const HeapWord* from, HeapWord* to, size_t count) {
 107   pd_conjoint_jlongs_atomic((const jlong*)from, (jlong*)to, count);
 108 }
 109 
 110 static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t count) {
 111   pd_conjoint_oops_atomic((const oop*)from, (oop*)to, count);


  41   pd_conjoint_words(from, to, count);
  42 }
  43 
  44 static void pd_aligned_disjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
  45   pd_disjoint_words(from, to, count);
  46 }
  47 
  48 static void pd_conjoint_bytes(const void* from, void* to, size_t count) {
  49   memmove(to, from, count);
  50 }
  51 
  52 static void pd_conjoint_bytes_atomic(const void* from, void* to, size_t count) {
  53   pd_conjoint_bytes(from, to, count);
  54 }
  55 
  56 static void pd_conjoint_jshorts_atomic(const jshort* from, jshort* to, size_t count) {
  57   _Copy_conjoint_jshorts_atomic(from, to, count * BytesPerShort);
  58 }
  59 
  60 static void pd_conjoint_jints_atomic(const jint* from, jint* to, size_t count) {



  61   assert(HeapWordSize == BytesPerInt, "heapwords and jints must be the same size");
  62   // pd_conjoint_words is word-atomic in this implementation.
  63   pd_conjoint_words((const HeapWord*)from, (HeapWord*)to, count);

  64 }
  65 
  66 static void pd_conjoint_jlongs_atomic(const jlong* from, jlong* to, size_t count) {




  67   _Copy_conjoint_jlongs_atomic(from, to, count * BytesPerLong);

  68 }
  69 
  70 static void pd_conjoint_oops_atomic(const oop* from, oop* to, size_t count) {









  71   assert(BytesPerHeapOop == BytesPerInt, "32-bit architecture");
  72   pd_conjoint_jints_atomic((const jint*)from, (jint*)to, count);

  73 }
  74 
  75 static void pd_arrayof_conjoint_bytes(const HeapWord* from, HeapWord* to, size_t count) {
  76   pd_conjoint_bytes_atomic((const void*)from, (void*)to, count);
  77 }
  78 
  79 static void pd_arrayof_conjoint_jshorts(const HeapWord* from, HeapWord* to, size_t count) {
  80   pd_conjoint_jshorts_atomic((const jshort*)from, (jshort*)to, count);
  81 }
  82 
  83 static void pd_arrayof_conjoint_jints(const HeapWord* from, HeapWord* to, size_t count) {
  84   pd_conjoint_jints_atomic((const jint*)from, (jint*)to, count);
  85 }
  86 
  87 static void pd_arrayof_conjoint_jlongs(const HeapWord* from, HeapWord* to, size_t count) {
  88   pd_conjoint_jlongs_atomic((const jlong*)from, (jlong*)to, count);
  89 }
  90 
  91 static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t count) {
  92   pd_conjoint_oops_atomic((const oop*)from, (oop*)to, count);
src/hotspot/os_cpu/linux_arm/copy_linux_arm.inline.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File