summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
096358c)
AppSide::ignore_heap() already returns early when not MC_is_active().
void Context::declare_context(std::size_t size)
{
void Context::declare_context(std::size_t size)
{
/* Store the address of the stack in heap to compare it apart of heap comparison */
/* Store the address of the stack in heap to compare it apart of heap comparison */
- if(MC_is_active())
- MC_ignore_heap(this, size);
-#endif
+ MC_ignore_heap(this, size);
}
Context* ContextFactory::attach(actor::ActorImpl*)
}
Context* ContextFactory::attach(actor::ActorImpl*)
if (has_code()) {
this->stack_top_ = raw_makecontext(get_stack(), actor->get_stacksize(), smx_ctx_wrapper, this);
} else {
if (has_code()) {
this->stack_top_ = raw_makecontext(get_stack(), actor->get_stacksize(), smx_ctx_wrapper, this);
} else {
- if (MC_is_active())
- MC_ignore_heap(&stack_top_, sizeof stack_top_);
+ MC_ignore_heap(&stack_top_, sizeof stack_top_);
- if(MC_is_active()){
- /* Ignore total amount of messages sent during the simulation for heap comparison */
- MC_ignore_heap(&msg_global->sent_msg, sizeof msg_global->sent_msg);
- }
+ /* Ignore total amount of messages sent during the simulation for heap comparison */
+ MC_ignore_heap(&msg_global->sent_msg, sizeof msg_global->sent_msg);
if (simgrid::config::get_value<bool>("debug/clean-atexit"))
atexit(MSG_exit);
if (simgrid::config::get_value<bool>("debug/clean-atexit"))
atexit(MSG_exit);
static std::atomic_ullong counter{0};
id_ = counter++;
set_data(data);
static std::atomic_ullong counter{0};
id_ = counter++;
set_data(data);
- if (MC_is_active())
- MC_ignore_heap(&id_, sizeof id_);
+ MC_ignore_heap(&id_, sizeof id_);
}
Task::Task(const std::string& name, std::vector<s4u::Host*>&& hosts, std::vector<double>&& flops_amount,
}
Task::Task(const std::string& name, std::vector<s4u::Host*>&& hosts, std::vector<double>&& flops_amount,
timer_ = xbt_os_timer_new();
state_ = SmpiProcessState::UNINITIALIZED;
info_env_ = MPI_INFO_NULL;
timer_ = xbt_os_timer_new();
state_ = SmpiProcessState::UNINITIALIZED;
info_env_ = MPI_INFO_NULL;
- if (MC_is_active())
- MC_ignore_heap(timer_, xbt_os_timer_size());
+ MC_ignore_heap(timer_, xbt_os_timer_size());
#if HAVE_PAPI
if (not smpi_cfg_papi_events_file().empty()) {
#if HAVE_PAPI
if (not smpi_cfg_papi_events_file().empty()) {