Parcourir la source

[2850] Add a comment

Mukund Sivaraman il y a 12 ans
Parent
commit
e4a817403b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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 (...) {