Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make cleanupSurf() private.
[simgrid.git] / src / smpi / internals / smpi_shared.cpp
index edef84d..154d70d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2018. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -139,6 +139,8 @@ static void* shm_map(int fd, size_t size, shared_data_key_type* data) {
   snprintf(loc, PTR_STRLEN, "%p", mem);
   meta.size = size;
   meta.data = data;
+  meta.allocated_ptr   = mem;
+  meta.allocated_size  = size;
   allocs_metadata[mem] = meta;
   XBT_DEBUG("MMAP %zu to %p", size, mem);
   return mem;