区分出allocator和all_policy的概念