< prev index next >

src/hotspot/share/gc/z/zUtils.inline.hpp

Print this page
@@ -44,16 +44,30 @@
  
  inline size_t ZUtils::object_size(uintptr_t addr) {
    return words_to_bytes(ZOop::from_address(addr)->size());
  }
  
+ inline size_t ZUtils::object_compact_size(uintptr_t addr) {
+   return words_to_bytes(ZOop::from_address(addr)->compact_size());
+ }
+ 
  inline void ZUtils::object_copy_disjoint(uintptr_t from, uintptr_t to, size_t size) {
-   Copy::aligned_disjoint_words((HeapWord*)from, (HeapWord*)to, bytes_to_words(size));
+   ZOop::from_address(from)->copy_disjoint((HeapWord*)to, bytes_to_words(size));
  }
  
  inline void ZUtils::object_copy_conjoint(uintptr_t from, uintptr_t to, size_t size) {
    if (from != to) {
-     Copy::aligned_conjoint_words((HeapWord*)from, (HeapWord*)to, bytes_to_words(size));
+     ZOop::from_address(from)->copy_conjoint((HeapWord*)to, bytes_to_words(size));
+   }
+ }
+ 
+ inline void ZUtils::object_copy_disjoint_compact(uintptr_t from, uintptr_t to, size_t size) {
+   ZOop::from_address(from)->copy_disjoint_compact((HeapWord*)to, bytes_to_words(size));
+ }
+ 
+ inline void ZUtils::object_copy_conjoint_compact(uintptr_t from, uintptr_t to, size_t size) {
+   if (from != to) {
+     ZOop::from_address(from)->copy_conjoint_compact((HeapWord*)to, bytes_to_words(size));
    }
  }
  
  #endif // SHARE_GC_Z_ZUTILS_INLINE_HPP
< prev index next >