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.
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.
Attachments
Issue Links
- blocks
-
JDK-8072498 Multi-thread JNI weak reference processing
- Resolved
- relates to
-
JDK-8204097 Simplify OopStorage::AllocateList block entry access
- Resolved
-
JDK-8213440 Lingering INCLUDE_ALL_GCS in test_oopStorage_parperf.cpp
- Resolved
-
JDK-8202945 OopStorage should use GlobalCounter
- Resolved