mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-28 19:20:33 +00:00
8134749: SoftReferences declared dead too early
Reviewed-by: jmasa, tbenson
This commit is contained in:
parent
9539f68b3e
commit
75412035e3
@ -645,9 +645,7 @@ public:
|
||||
OopClosure& keep_alive,
|
||||
VoidClosure& complete_gc)
|
||||
{
|
||||
Thread* thr = Thread::current();
|
||||
int refs_list_index = ((WorkerThread*)thr)->id();
|
||||
_ref_processor.process_phase1(_refs_lists[refs_list_index], _policy,
|
||||
_ref_processor.process_phase1(_refs_lists[i], _policy,
|
||||
&is_alive, &keep_alive, &complete_gc);
|
||||
}
|
||||
private:
|
||||
@ -683,11 +681,6 @@ public:
|
||||
OopClosure& keep_alive,
|
||||
VoidClosure& complete_gc)
|
||||
{
|
||||
// Don't use "refs_list_index" calculated in this way because
|
||||
// balance_queues() has moved the Ref's into the first n queues.
|
||||
// Thread* thr = Thread::current();
|
||||
// int refs_list_index = ((WorkerThread*)thr)->id();
|
||||
// _ref_processor.process_phase3(_refs_lists[refs_list_index], _clear_referent,
|
||||
_ref_processor.process_phase3(_refs_lists[i], _clear_referent,
|
||||
&is_alive, &keep_alive, &complete_gc);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user