JDK-8252014 : Find a better place for counter utility classes after JEP387
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2020-08-19
  • Updated: 2023-01-06
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.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Followup to JEP387:

JEP387 comes with a number of new utility classes, shyly hidden away inside the metaspace source tree. Some of those could be brushed up and made general purpose classes instead.

One example are the counter classes (see: http://cr.openjdk.java.net/~stuefe/jep387/review/2020-08-11/webrev-core/webrev/src/hotspot/share/memory/metaspace/counter.hpp.html )


Comments
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0261r1.html Here's a link to a paper for a more standard way of implementing atomic non-wrapping around counters that [~kbarrett] references.
19-08-2020