update memory pool