Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -70,7 +70,9 @@ private void makeReferences() {
for (int i = 1; i < length; ++i) {
references[i] = new WeakReference(references[i - 1]);
}
for (int i = 0; i < length - 1; ++i) {
// Release in reverse order, otherwise an entry cleared mid release
// can sit on the pending list and keep the last referent alive.
for (int i = length - 2; i >= 0; --i) {
references[i] = null;
}
}
Expand Down