Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix broken mc_snapshot_get_heap_end()
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 2 Apr 2015 11:39:56 +0000 (13:39 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 2 Apr 2015 11:40:23 +0000 (13:40 +0200)
src/mc/mc_snapshot.h

index 61baa7e..7591a31 100644 (file)
@@ -303,10 +303,7 @@ const void* mc_snapshot_get_heap_end(mc_snapshot_t snapshot)
 {
   if(snapshot==NULL)
       xbt_die("snapshot is NULL");
-  // This is &std_heap->breakval in the target process:
-  void** addr = &MC_process_get_heap(&mc_model_checker->process)->breakval;
-  // Read (std_heap->breakval) in the target process (*addr i.e. std_heap->breakval):
-  return MC_snapshot_read_pointer(snapshot, addr, MC_PROCESS_INDEX_ANY);
+  return MC_process_get_heap(&mc_model_checker->process)->breakval;
 }
 
 /** @brief Read memory from a snapshot region