Relates :
|
Since we started processing refs during concurrent marking, with the final ref processing taking place during the remark pause, we should make sure that we hold the pending list lock before doing the remark pause. Otherwise, we could mess up a thread that's accessing the pending list and went into a safepoint while holding said lock.
|