JDK-8200557 : OopStorage parallel iteration scales poorly
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-03-31
  • Updated: 2018-11-07
  • Resolved: 2018-05-03
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.
JDK 11
11 b13Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Relates :  
Description
The parallel iteration support supplied by OopStorage scales poorly to multiple threads, particularly when the work to be done for each block is small, as may occur when the storage contains weak references.  For example, a microbenchmark for JNI weak handles such as from JDK-8176454, with JNI weak handle processing parallelized, shows little or no parallelization speedup.

This seems to be a consequence of a combination of (1) contention when attempting to claim blocks, and (2) each thread touching the majority of blocks as it walks the block list.