libpmemobj-cpp icon indicating copy to clipboard operation
libpmemobj-cpp copied to clipboard

Allowing persistent containers to be stored in volatile memory.

Open igchor opened this issue 5 years ago • 0 comments

Currently, persistent vector, array and string are not allowed on volatile memory (including stack). This makes it impossible to pass/return those containers by value. This limitation was introduced to decrease possibility of a persistent memory leak. Persistent containers always allocate from pmem so if a crash would occur before the container is moved to persistent memory we would have no way to access memory which was managed by the container.

igchor avatar Mar 26 '19 14:03 igchor