diff -r cfceb4df2499 -r e90315ae8aa9 src/hotspot/share/memory/allocation.hpp --- a/src/hotspot/share/memory/allocation.hpp Sun Dec 30 08:57:24 2018 +0700 +++ b/src/hotspot/share/memory/allocation.hpp Mon Dec 31 15:40:50 2018 -0500 @@ -365,12 +365,14 @@ // Use second array's element for verification value to distinguish garbage. uintptr_t _allocation_t[2]; bool is_type_set() const; + void initialize_allocation_info(); public: allocation_type get_allocation_type() const; bool allocated_on_stack() const { return get_allocation_type() == STACK_OR_EMBEDDED; } bool allocated_on_res_area() const { return get_allocation_type() == RESOURCE_AREA; } bool allocated_on_C_heap() const { return get_allocation_type() == C_HEAP; } bool allocated_on_arena() const { return get_allocation_type() == ARENA; } +protected: ResourceObj(); // default constructor ResourceObj(const ResourceObj& r); // default copy constructor ResourceObj& operator=(const ResourceObj& r); // default copy assignment