Browse Source

[2850] Add a comment

Mukund Sivaraman 12 years ago
parent
commit
e4a817403b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib/util/memory_segment_mapped.cc

+ 2 - 0
src/lib/util/memory_segment_mapped.cc

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