]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/context/ContextRaw.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
process -> actor
[simgrid.git] / src / kernel / context / ContextRaw.cpp
index 443c37f770ef8fd63d24e48a7977a1ada3c63ae8..cdae042cda1b5540686c404f838e5dbfd108ce28 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2009-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -202,7 +202,7 @@ RawContext::RawContext(std::function<void()>&& code, actor::ActorImpl* actor, Sw
     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_);
   }
 }