X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdf6a962eb4e88efbed3df9c41343adabcf09e6c..c085e4288adde7c5593a5358a349fc16b5885df1:/src/xbt/mmalloc/mm_module.c diff --git a/src/xbt/mmalloc/mm_module.c b/src/xbt/mmalloc/mm_module.c index 825d992de7..ebf84946a0 100644 --- a/src/xbt/mmalloc/mm_module.c +++ b/src/xbt/mmalloc/mm_module.c @@ -1,6 +1,6 @@ -/* Initialization for acces s to a mmap'd malloc managed region. */ +/* Initialization for access to a mmap'd malloc managed region. */ -/* Copyright (c) 2012-2019. The SimGrid Team. +/* Copyright (c) 2012-2021. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -62,7 +62,7 @@ starting at the specified address BASEADDR in the process address space. - The provided BASEADDR should be choosed carefully in order to avoid + The provided BASEADDR should be chosen carefully in order to avoid bumping into existing mapped regions or future mapped regions. On success, returns a "malloc descriptor" which is used in subsequent @@ -96,7 +96,7 @@ xbt_mheap_t xbt_mheap_new_options(int fd, void *baseaddr, int options) return (NULL); else if (sbuf.st_size > 0) { - /* We were given an valid file descriptor on an open file, so try to remap + /* We were given a valid file descriptor on an open file, so try to remap it into the current process at the same address to which it was previously mapped. It naturally have to pass some sanity checks for that.