< prev index next >
src/hotspot/share/memory/allocation.cpp
Print this page
rev 52794 : imported patch assign_assert
*** 223,232 ****
--- 223,235 ----
// Initialize _allocation_t as a new object, ignoring object being copied.
initialize_allocation_info();
}
ResourceObj& ResourceObj::operator=(const ResourceObj& r) {
+ assert(allocated_on_stack(),
+ "copy only into local, this(" PTR_FORMAT ") type %d a[0]=(" PTR_FORMAT ") a[1]=(" PTR_FORMAT ")",
+ p2i(this), get_allocation_type(), _allocation_t[0], _allocation_t[1]);
// Keep current _allocation_t value;
return *this;
}
ResourceObj::~ResourceObj() {
< prev index next >