8022880: False sharing between PSPromotionManager instances

Pad the PSPromotionManager instances in the manager array.

Reviewed-by: brutisso, jmasa
This commit is contained in:
Stefan Karlsson 2013-05-31 14:32:44 +02:00
parent 7cea3820af
commit 70f22c649b
10 changed files with 189 additions and 47 deletions

View file

@ -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>