[PATCH openEuler-1.0-LTS 086/103] share_pool: Optimize compact procedure