Fix thread in codedstream , Little change in object pool