摘要 |
In response to an initial request (GET) from a first user, indicating the size of the required buffer (LENG-phi), the memory management allocates a basic buffer of the size requested. A first locator (Lphi) is returned to the first user, identifying the basic buffer by a pointer an offset value and a length value. A reference count, which is set initially at one, is opened for the basic buffer. Upon receiving a replication request (REP) from any user for all or part of the basic buffer, identified by a locator, another locator (Li) is returned. This identifies a buffer segment equal to the basic buffer by pointer, offset and length values. The reference count is incremented by one. In response to a release message (RET) for a buffer segment defined by a locator (Li), the respective reference count is decreased by one unit and when it reaches zero, the respective basic buffer is de-allocated.
|