From 3ef60a61a2b8e4e245092d59039f7535f4765069 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 8 Jul 2019 09:06:45 -0700 Subject: [PATCH] always epicsThreadStackBig On RTEMS at least, c++ code needs the largest standard stack frame size. --- src/misc/pv/thread.h | 2 +- src/misc/reftrack.cpp | 2 +- src/misc/thread.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/misc/pv/thread.h b/src/misc/pv/thread.h index 5cc1fd5..b4b6b6c 100644 --- a/src/misc/pv/thread.h +++ b/src/misc/pv/thread.h @@ -158,7 +158,7 @@ public: Thread(std::string name, ThreadPriority priority, Runnable *runnable, - epicsThreadStackSizeClass stkcls=epicsThreadStackSmall); + epicsThreadStackSizeClass stkcls=epicsThreadStackBig); /** * diff --git a/src/misc/reftrack.cpp b/src/misc/reftrack.cpp index 2a4a9de..d13b386 100644 --- a/src/misc/reftrack.cpp +++ b/src/misc/reftrack.cpp @@ -223,7 +223,7 @@ void RefMonitor::start(double period) impl->period = period; impl->worker.reset(new epicsThread(*impl, "RefMonitor", - epicsThreadGetStackSize(epicsThreadStackSmall), + epicsThreadGetStackSize(epicsThreadStackBig), epicsThreadPriorityMin)); impl->worker->start(); } diff --git a/src/misc/thread.cpp b/src/misc/thread.cpp index ddaa916..cca111d 100644 --- a/src/misc/thread.cpp +++ b/src/misc/thread.cpp @@ -52,7 +52,7 @@ void Thread::Config::x_setdefault() this->p_prio = epicsThreadPriorityLow; this->p_autostart = true; this->p_runner = NULL; - (*this).stack(epicsThreadStackSmall); + (*this).stack(epicsThreadStackBig); } size_t Thread::num_instances;