< prev index next >

src/hotspot/share/gc/shared/oopStorage.inline.hpp

Print this page
rev 57095 : [mq]: use
rev 57096 : [mq]: trailing_semi

*** 32,41 **** --- 32,42 ---- #include "runtime/safepoint.hpp" #include "utilities/align.hpp" #include "utilities/count_trailing_zeros.hpp" #include "utilities/debug.hpp" #include "utilities/globalDefinitions.hpp" + #include "utilities/macros.hpp" // Array of all active blocks. Refcounted for lock-free reclaim of // old array when a new array is allocated for expansion. class OopStorage::ActiveArray { friend class OopStorage::TestAccess;
*** 46,58 **** // Block* _blocks[1]; // Pseudo flexible array member. ActiveArray(size_t size); ~ActiveArray(); ! // Noncopyable ! ActiveArray(const ActiveArray&); ! ActiveArray& operator=(const ActiveArray&); static size_t blocks_offset(); Block* const* base_ptr() const; Block* const* block_ptr(size_t index) const; --- 47,57 ---- // Block* _blocks[1]; // Pseudo flexible array member. ActiveArray(size_t size); ~ActiveArray(); ! NONCOPYABLE(ActiveArray); static size_t blocks_offset(); Block* const* base_ptr() const; Block* const* block_ptr(size_t index) const;
*** 116,128 **** // const, to make const blocks easier to use; a block being const // doesn't prevent modifying its list state. mutable const Block* _prev; mutable const Block* _next; ! // Noncopyable. ! AllocationListEntry(const AllocationListEntry&); ! AllocationListEntry& operator=(const AllocationListEntry&); public: AllocationListEntry(); ~AllocationListEntry(); }; --- 115,125 ---- // const, to make const blocks easier to use; a block being const // doesn't prevent modifying its list state. mutable const Block* _prev; mutable const Block* _next; ! NONCOPYABLE(AllocationListEntry); public: AllocationListEntry(); ~AllocationListEntry(); };
*** 151,163 **** unsigned get_index(const oop* ptr) const; template<typename F, typename BlockPtr> static bool iterate_impl(F f, BlockPtr b); ! // Noncopyable. ! Block(const Block&); ! Block& operator=(const Block&); public: const AllocationListEntry& allocation_list_entry() const; static size_t allocation_size(); --- 148,158 ---- unsigned get_index(const oop* ptr) const; template<typename F, typename BlockPtr> static bool iterate_impl(F f, BlockPtr b); ! NONCOPYABLE(Block); public: const AllocationListEntry& allocation_list_entry() const; static size_t allocation_size();
< prev index next >