|
|
@ -133,7 +133,7 @@ In environments where memory management is explicit, the lifecycle of data in me |
|
|
|
2. Memory being shared with producers/consumers (e.g. as a parameter Read/Update/Consume) |
|
|
|
3. Read/write operations by multiple parties (needs synchronization if multithreaded environment) |
|
|
|
3. Make sure this memory will never be accessed again by nobody |
|
|
|
4. Memory has to be freed exactly once and compatible to how it was allocated |
|
|
|
4. Memory has to be freed exactly once and compatibly to how it was allocated |
|
|
|
|
|
|
|
Every such lifecycle must be completed. |
|
|
|
All of this must be guaranteed. |
|
|
|