< prev index next >

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

Print this page

22  */
23 
24 #ifndef SHARE_GC_Z_ZUTILS_HPP
25 #define SHARE_GC_Z_ZUTILS_HPP
26 
27 #include "memory/allocation.hpp"
28 
29 class ZUtils : public AllStatic {
30 public:
31   // Allocation
32   static uintptr_t alloc_aligned(size_t alignment, size_t size);
33 
34   // Size conversion
35   static size_t bytes_to_words(size_t size_in_words);
36   static size_t words_to_bytes(size_t size_in_words);
37 
38   // Object
39   static size_t object_size(uintptr_t addr);
40   static void object_copy_disjoint(uintptr_t from, uintptr_t to, size_t size);
41   static void object_copy_conjoint(uintptr_t from, uintptr_t to, size_t size);




42 };
43 
44 #endif // SHARE_GC_Z_ZUTILS_HPP

22  */
23 
24 #ifndef SHARE_GC_Z_ZUTILS_HPP
25 #define SHARE_GC_Z_ZUTILS_HPP
26 
27 #include "memory/allocation.hpp"
28 
29 class ZUtils : public AllStatic {
30 public:
31   // Allocation
32   static uintptr_t alloc_aligned(size_t alignment, size_t size);
33 
34   // Size conversion
35   static size_t bytes_to_words(size_t size_in_words);
36   static size_t words_to_bytes(size_t size_in_words);
37 
38   // Object
39   static size_t object_size(uintptr_t addr);
40   static void object_copy_disjoint(uintptr_t from, uintptr_t to, size_t size);
41   static void object_copy_conjoint(uintptr_t from, uintptr_t to, size_t size);
42 
43   static size_t object_compact_size(uintptr_t addr);
44   static void object_copy_disjoint_compact(uintptr_t from, uintptr_t to, size_t size);
45   static void object_copy_conjoint_compact(uintptr_t from, uintptr_t to, size_t size);
46 };
47 
48 #endif // SHARE_GC_Z_ZUTILS_HPP
< prev index next >