< prev index next >
src/share/vm/runtime/biasedLocking.cpp
Print this page
*** 54,65 ****
VMOp_Type type() const { return VMOp_EnableBiasedLocking; }
Mode evaluation_mode() const { return _is_cheap_allocated ? _async_safepoint : _safepoint; }
bool is_cheap_allocated() const { return _is_cheap_allocated; }
void doit() {
! // Iterate the system dictionary enabling biased locking for all
! // currently loaded classes
ClassLoaderDataGraph::dictionary_classes_do(enable_biased_locking);
// Indicate that future instances should enable it as well
_biased_locking_enabled = true;
log_info(biasedlocking)("Biased locking enabled");
--- 54,65 ----
VMOp_Type type() const { return VMOp_EnableBiasedLocking; }
Mode evaluation_mode() const { return _is_cheap_allocated ? _async_safepoint : _safepoint; }
bool is_cheap_allocated() const { return _is_cheap_allocated; }
void doit() {
! // Iterate the class loader data dictionaries enabling biased locking for all
! // currently loaded classes.
ClassLoaderDataGraph::dictionary_classes_do(enable_biased_locking);
// Indicate that future instances should enable it as well
_biased_locking_enabled = true;
log_info(biasedlocking)("Biased locking enabled");
< prev index next >