< prev index next >
src/hotspot/share/runtime/biasedLocking.cpp
Print this page
rev 56099 : imported patch 8226705-rebase
rev 56101 : [mq]: 8226705-refactor
*** 883,909 ****
clean_up_cached_monitor_info();
}
}
- void BiasedLocking::revoke_at_safepoint(GrowableArray<Handle>* objs) {
- assert(SafepointSynchronize::is_at_safepoint(), "must only be called while at safepoint");
- int len = objs->length();
- for (int i = 0; i < len; i++) {
- oop obj = (objs->at(i))();
- HeuristicsResult heuristics = update_heuristics(obj);
- if (heuristics == HR_SINGLE_REVOKE) {
- single_revoke_at_safepoint(obj, false, NULL, NULL);
- } else if ((heuristics == HR_BULK_REBIAS) ||
- (heuristics == HR_BULK_REVOKE)) {
- bulk_revoke_at_safepoint(obj, (heuristics == HR_BULK_REBIAS), NULL);
- }
- }
- clean_up_cached_monitor_info();
- }
-
-
void BiasedLocking::preserve_marks() {
if (!UseBiasedLocking)
return;
assert(SafepointSynchronize::is_at_safepoint(), "must only be called while at safepoint");
--- 883,892 ----
< prev index next >