Garbage collection method and device
AssigneeAlibaba Group Holding Limited
InventorsJie ZHANG, Chen ZHANG, Le HE, Yingjie SHI, Yan HUANG
Life of this patent
Estimating the term…
Abstract
Heterogeneous garbage types are collected by scanning all of the service items to identify all of the service types that are included within the service items, identifying garbage collection components that correspond with the service types, and then collecting garbage for the corresponding target service types by using the corresponding garbage collection components.
Claims27
A method of garbage collection comprising:
- scanning all service items to generate a first list of scanned service items, the service items including applications stored on a storage media, each service item including one or more target service types, the first list of scanned service items including a number of target service types, the target service types including functions provided by the applications;
- determining a number of target components such that each target service type has a corresponding target component, the number of target components including a number of garbage collecting logics such that each target component has a corresponding garbage collecting logic, each garbage collecting logic being different;
- and
- collecting garbage for each target service type on the first list of scanned service items using the target component that corresponds with each target service type to collect heterogeneous garbage types.
A garbage collection apparatus, comprising:
- a memory;
- and
- a processor coupled to the memory to execute instructions stored in the memory, the processor to:
- scan all service items to generate a first list of scanned service items, the service items including applications stored on a storage media, each service item including one or more target service types, the first list of scanned service items including a number of target service types, the target service types including functions provided by the applications;
- determine a number of target components such that each target service type has a corresponding target component, the number of target components including a number of garbage collecting logics such that each target component has a corresponding garbage collecting logic, each garbage collecting logic being different;
- and
- collect garbage for each target service type on the first list of scanned service items using the target component that corresponds with each target service type to collect heterogeneous garbage types.
A non-transitory computer-readable storage medium having embedded therein program instructions, which when executed by a processor causes the processor to execute a method of unlocking a shared object, the method comprising:
- scanning all service items to generate a first list of scanned service items, the service items including applications stored on a storage media, each service item including one or more target service types, the first list of scanned service items including a number of target service types, the target service types including functions provided by the applications;
- determining a number of target components such that each target service type has a corresponding target component, the number of target components including a number of garbage collecting logics such that each target component has a corresponding garbage collecting logic, each garbage collecting logic being different;
- and
- collecting garbage for each target service type on the first list of scanned service items using the target component that corresponds with each target service type to collect heterogeneous garbage types.
Dependencies are inferred from the claim text.