JDK-8009232 : Improve stats gathering code for reference processor
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
The current stats gathering code can be improved to not rely on an instance variable, instead the ReferenceProcessorStats object can be put on the stack and copied out each time process_discovered_references is called.
Verified in JDK:1.7.0_40 b28 HS:24.0 b46
Bug could be verified by: closed/com/oracle/jfr/gc/TestReferenceStatisticsEvent.java