void ResourceArea::verify_has_resource_mark() { if (_nesting <= 0 && !VMError::is_error_reported()) { // Only report the first occurrence of an allocating thread that // is missing a ResourceMark, to avoid possible recursive errors // in error handling. staticvolatilebool reported = false; if (!Atomic::load(&reported)) { if (!Atomic::cmpxchg(&reported, false, true)) {
fatal("memory leak: allocating without ResourceMark");
}
}
}
}
#endif// ASSERT
//------------------------------ResourceMark----------------------------------- // The following routines are declared in allocation.hpp and used everywhere:
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.