mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8022880: False sharing between PSPromotionManager instances
Pad the PSPromotionManager instances in the manager array. Reviewed-by: brutisso, jmasa
This commit is contained in:
parent
7cea3820af
commit
70f22c649b
10 changed files with 189 additions and 47 deletions
|
@ -32,7 +32,7 @@
|
|||
inline PSPromotionManager* PSPromotionManager::manager_array(int index) {
|
||||
assert(_manager_array != NULL, "access of NULL manager_array");
|
||||
assert(index >= 0 && index <= (int)ParallelGCThreads, "out of range manager_array access");
|
||||
return _manager_array[index];
|
||||
return &_manager_array[index];
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue