1. A microprocessor comprising: a general purpose central processing unit (CPU); a special processing unit (SPU); and a memory; wherein the CPU is configured to send a garbage collection request and a first log to the SPU, in response to determining a garbage collection initiate condition is satisfied; wherein in response to receiving the garbage collection request, the SPU is configured to: perform a first set of operations corresponding to a garbage collection algorithm on data objects identified by the first log; and record a second set of operations in a second log, wherein the second set represents a subset of the first set of operations.