Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Enforce some assumption about the relationship of the compared areas in compare_...
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 20 Jan 2014 14:23:54 +0000 (15:23 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 31 Jan 2014 11:00:27 +0000 (12:00 +0100)
commit0bdba6096fe70d61ea36be5baf37c84b2fa4d999
tree7224db3b571f9223018bab832c8722645f7df145
parentfb1a44467014ae937dbdcad4066d952e2f288f7a
[mc] Enforce some assumption about the relationship of the compared areas in compare_areas_with_type

Compare_areas_with_type expects that either :

 * both area are in the heap;
 * both area are in the current segment R/W segment.

Otherwise, it falls back to comparing pointers.

Changes to code to fail if both areas are not in the same segment
src/mc/mc_compare.c