[PATCH openEuler-1.0-LTS 038/103] share_pool: Calculate sp_alloc() size for a task