Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH] lib/core/fiber: Initialize stack_watermark where appropriate
@ 2019-03-18 17:23 Cyrill Gorcunov
  2019-03-18 17:52 ` Vladimir Davydov
  0 siblings, 1 reply; 9+ messages in thread
From: Cyrill Gorcunov @ 2019-03-18 17:23 UTC (permalink / raw)
  To: Vladimir Davydov; +Cc: tml, Cyrill Gorcunov

The stack_watermark member declared with HAVE_MADV_DONTNEED wrap,
so need to guard it here the same way.

Fixes 553dc562342a52cb44d74a7521c9c8bec70c96a5
---
 src/lib/core/fiber.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/core/fiber.c b/src/lib/core/fiber.c
index 243a73bf8..b5033a32e 100644
--- a/src/lib/core/fiber.c
+++ b/src/lib/core/fiber.c
@@ -1076,7 +1076,10 @@ cord_create(struct cord *cord, const char *name)
 	cord->sched.stack = NULL;
 	cord->sched.stack_size = 0;
 #endif
+
+#ifdef HAVE_MADV_DONTNEED
 	cord->sched.stack_watermark = NULL;
+#endif
 }
 
 void
-- 
2.20.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-03-18 21:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 17:23 [PATCH] lib/core/fiber: Initialize stack_watermark where appropriate Cyrill Gorcunov
2019-03-18 17:52 ` Vladimir Davydov
2019-03-18 18:07   ` Cyrill Gorcunov
2019-03-18 18:55   ` [tarantool-patches] " Konstantin Osipov
2019-03-18 19:04     ` Cyrill Gorcunov
2019-03-18 19:10       ` Konstantin Osipov
2019-03-18 19:17         ` Cyrill Gorcunov
2019-03-18 21:19           ` Konstantin Osipov
2019-03-18 21:38             ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox