摘要 |
A method for resource management, including: identifying a resource map corresponding to a thread stack of a first thread; reading, in the resource map and by a computer processor, a bit value referencing an address of a first binary value in the thread stack; determining, based on the bit value and by the computer processor, that the first binary value corresponds to a managed resource; reading, by the computer processor, a resource identifier section of the first binary value after determining that the first binary value corresponds to the managed resource; determining a type of the managed resource based on the resource identifier section; interpreting, based on the type of the managed resource, at least a portion of a payload of the first binary value as a reference to a resource address of the managed resource in a resource storage; and accessing the managed resource using the reference.
|