--- old/src/hotspot/share/memory/allocation.hpp 2018-12-03 01:58:59.098353723 -0500 +++ new/src/hotspot/share/memory/allocation.hpp 2018-12-03 01:58:58.814338679 -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