Loading... (original) (raw)

Uploaded image for project: 'JDK'

  1. JDK
  2. JDK-8151601

Cleanup locking of the Reference pending list

The SurrogateLockerThread is currently used by both G1 and CMS to lock the Reference pending list. However, there's quite a bit of unnecessary code duplication and special case handling in this area. This could fairly easily be avoided by generalizing the code.