SAFE MANUAL MEMORY MANAGEMENT
    2.
    发明申请

    公开(公告)号:US20180253311A1

    公开(公告)日:2018-09-06

    申请号:US15615757

    申请日:2017-06-06

    CPC classification number: G06F9/30123 G06F9/30116

    Abstract: A method of manual memory management is described which comprises enabling one or more threads to access an object created in a manual heap by storing a reference to the object in thread-local state and subsequently deleting the stored reference after accessing the object. In response to abandonment of the object, an identifier for the object and a current value of either a local counter of a thread or a global counter are stored in a delete queue and all threads are prevented from storing any further references to the object in thread-local state. Deallocation of the object only occurs when all references to the object stored in thread-local state for any threads have been deleted and a current value of the local counter for the thread or the global counter has incremented to a value that is at least a pre-defined amount more than the stored value, wherein the global counter is updated using one or more local counters.

Patent Agency Ranking