|
@@ -331,6 +331,8 @@ MemorySegmentMapped::allMemoryDeallocated() const {
|
|
try {
|
|
try {
|
|
impl_->freeReservedMemory();
|
|
impl_->freeReservedMemory();
|
|
const bool result = impl_->base_sgmt_->all_memory_deallocated();
|
|
const bool result = impl_->base_sgmt_->all_memory_deallocated();
|
|
|
|
+ // reserveMemory() should succeed now as the memory was already
|
|
|
|
+ // allocated.
|
|
impl_->reserveMemory();
|
|
impl_->reserveMemory();
|
|
return (result);
|
|
return (result);
|
|
} catch (...) {
|
|
} catch (...) {
|