A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Factorize some of the ASAN_ONLY code.
[simgrid.git]
/
src
/
kernel
/
context
/
ContextRaw.cpp
diff --git
a/src/kernel/context/ContextRaw.cpp
b/src/kernel/context/ContextRaw.cpp
index
3b29062
..
c7a0a1c
100644
(file)
--- a/
src/kernel/context/ContextRaw.cpp
+++ b/
src/kernel/context/ContextRaw.cpp
@@
-194,16
+194,11
@@
Context* RawContextFactory::create_context(std::function<void()> code, void_pfn_
// RawContext
// RawContext
-RawContext::RawContext(std::function<void()> code, void_pfn_smxprocess_t cleanup, smx_actor_t
process
,
+RawContext::RawContext(std::function<void()> code, void_pfn_smxprocess_t cleanup, smx_actor_t
actor
,
SwappedContextFactory* factory)
SwappedContextFactory* factory)
- : SwappedContext(std::move(code), cleanup,
process
, factory)
+ : SwappedContext(std::move(code), cleanup,
actor
, factory)
{
if (has_code()) {
{
if (has_code()) {
-#if PTH_STACKGROWTH == -1
- ASAN_ONLY(this->asan_stack_ = static_cast<char*>(get_stack()) + smx_context_usable_stack_size);
-#else
- ASAN_ONLY(this->asan_stack_ = get_stack());
-#endif
this->stack_top_ = raw_makecontext(get_stack(), smx_context_usable_stack_size, RawContext::wrapper, this);
} else {
if (MC_is_active())
this->stack_top_ = raw_makecontext(get_stack(), smx_context_usable_stack_size, RawContext::wrapper, this);
} else {
if (MC_is_active())