Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Different/private mc_stack variables for SafetyChecker and LivenessChecker
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 4 Apr 2016 10:15:41 +0000 (12:15 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 4 Apr 2016 13:36:00 +0000 (15:36 +0200)
src/mc/CommunicationDeterminismChecker.cpp
src/mc/SafetyChecker.cpp
src/mc/mc_global.cpp
src/mc/mc_private.h

index b30b312..1f5f320 100644 (file)
@@ -28,6 +28,8 @@ using simgrid::mc::remote;
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_comm_determinism, mc,
                                 "Logging specific to MC communication determinism detection");
 
+XBT_PRIVATE static xbt_fifo_t mc_stack;
+
 /********** Global variables **********/
 
 xbt_dynar_t initial_communications_pattern;
index 9848af7..42fd716 100644 (file)
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_safety, mc,
                                 "Logging specific to MC safety verification ");
 
+/** Stack (of `simgrid::mc::State*`) representing the current position of the
+ *  the MC in the exploration graph
+ *
+ *  It is managed by its head (`xbt_fifo_shift` and `xbt_fifo_unshift`).
+ */
+XBT_PRIVATE static xbt_fifo_t mc_stack;
+
 namespace simgrid {
 namespace mc {
 
index 6e9b7b6..de449bf 100644 (file)
@@ -61,7 +61,6 @@ simgrid::mc::State* mc_current_state = nullptr;
 char mc_replay_mode = false;
 
 mc_stats_t mc_stats = nullptr;
-xbt_fifo_t mc_stack = nullptr;
 
 /* Liveness */
 
index c3ea760..1e82bbe 100644 (file)
@@ -68,13 +68,6 @@ XBT_PRIVATE extern int user_max_depth_reached;
 XBT_PRIVATE void MC_replay(xbt_fifo_t stack);
 XBT_PRIVATE void MC_show_deadlock(void);
 
-/** Stack (of `simgrid::mc::State*`) representing the current position of the
- *  the MC in the exploration graph
- *
- *  It is managed by its head (`xbt_fifo_shift` and `xbt_fifo_unshift`).
- */
-XBT_PRIVATE extern xbt_fifo_t mc_stack;
-
 /****************************** Statistics ************************************/
 
 typedef struct mc_stats {