mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7095243: Disambiguate ReferenceProcessor::_discoveredSoftRefs
Add a new, separate, pointer to the base of the array of discovered reference lists and use this new pointer in places where we iterate over the entire array. Reviewed-by: ysr, brutisso
This commit is contained in:
parent
81bdd2ccc6
commit
cab4072f8d
3 changed files with 27 additions and 18 deletions
|
@ -5068,7 +5068,7 @@ public:
|
|||
|
||||
// Select discovered lists [i, i+stride, i+2*stride,...,limit)
|
||||
for (int idx = i; idx < limit; idx += stride) {
|
||||
DiscoveredList& ref_list = rp->discovered_soft_refs()[idx];
|
||||
DiscoveredList& ref_list = rp->discovered_refs()[idx];
|
||||
|
||||
DiscoveredListIterator iter(ref_list, &keep_alive, &always_alive);
|
||||
while (iter.has_next()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue