Fix regression introduced by f765053ae7
by use Entry after it is recycled
This commit is contained in:
parent
81fee66c78
commit
9f5a3e553c
@ -441,11 +441,12 @@ final class PoolThreadCache {
|
|||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
private void freeEntry(Entry entry) {
|
private void freeEntry(Entry entry) {
|
||||||
PoolChunk chunk = entry.chunk;
|
PoolChunk chunk = entry.chunk;
|
||||||
|
long handle = entry.handle;
|
||||||
|
|
||||||
// recycle now so PoolChunk can be GC'ed.
|
// recycle now so PoolChunk can be GC'ed.
|
||||||
entry.recycle();
|
entry.recycle();
|
||||||
|
|
||||||
chunk.arena.freeChunk(chunk, entry.handle, sizeClass);
|
chunk.arena.freeChunk(chunk, handle, sizeClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
static final class Entry<T> {
|
static final class Entry<T> {
|
||||||
|
Loading…
Reference in New Issue
Block a user