public: // In some places we iterate over a list in order to generate output // for the list's elements. By exposing this we can avoid this // iteration if the printer is not active. constbool is_active() { return log_is_enabled(Trace, gc, region); }
// The methods below are convenient wrappers for the print() method.
void alloc(HeapRegion* hr, bool force = false) { if (is_active()) {
print((force) ? "ALLOC-FORCE" : "ALLOC", hr);
}
}
void retire(HeapRegion* hr) { if (is_active()) { if (!SKIP_RETIRED_FULL_REGIONS || hr->top() < hr->end()) {
print("RETIRE", hr);
}
}
}
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.