clean teh lzf buffer recycler
This commit is contained in:
parent
84c5d07726
commit
9b262a7363
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
package org.elasticsearch.common;
|
package org.elasticsearch.common;
|
||||||
|
|
||||||
|
import org.elasticsearch.common.compress.lzf.BufferRecycler;
|
||||||
import org.elasticsearch.common.trove.ExtTDoubleObjectHashMap;
|
import org.elasticsearch.common.trove.ExtTDoubleObjectHashMap;
|
||||||
import org.elasticsearch.common.trove.ExtTHashMap;
|
import org.elasticsearch.common.trove.ExtTHashMap;
|
||||||
import org.elasticsearch.common.trove.ExtTLongObjectHashMap;
|
import org.elasticsearch.common.trove.ExtTLongObjectHashMap;
|
||||||
|
@ -32,6 +33,7 @@ import java.util.Deque;
|
||||||
public class CacheRecycler {
|
public class CacheRecycler {
|
||||||
|
|
||||||
public static void clear() {
|
public static void clear() {
|
||||||
|
BufferRecycler.clean();
|
||||||
doubleObjectHashMap.remove();
|
doubleObjectHashMap.remove();
|
||||||
longObjectHashMap.remove();
|
longObjectHashMap.remove();
|
||||||
longLongHashMap.remove();
|
longLongHashMap.remove();
|
||||||
|
|
|
@ -64,6 +64,10 @@ public class BufferRecycler {
|
||||||
return br;
|
return br;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void clean() {
|
||||||
|
_recyclerRef.remove();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
// Buffers for encoding (output)
|
// Buffers for encoding (output)
|
||||||
|
|
Loading…
Reference in New Issue