compatible with MacOS
enlarge pool when reach LIMIT * 2
fix consistant split limit in hash tree