summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-06-12 17:32:18 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-06-12 17:32:18 -0400
commitd3b4b77a95baf66dcdb90c4312332bc2ac2c7663 (patch)
tree5d97e8c7b4862bd1f98cccb51fb5cc550979615e /indra/llcommon
parent6f50aa0e87804ceebce93e29dba4ce073c70cb62 (diff)
Add LL_DEBUGS("LLCoros") start/end messages.
We have log messages when a coroutine terminates abnormally, but we don't report either when it starts or when it terminates normally. Address that.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llcoros.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp
index a6d7988256..c28baa5747 100644
--- a/indra/llcommon/llcoros.cpp
+++ b/indra/llcommon/llcoros.cpp
@@ -270,7 +270,7 @@ std::string LLCoros::launch(const std::string& prefix, const callable_t& callabl
// std::allocator_arg is a flag to indicate that the following argument is
// a StackAllocator.
// protected_fixedsize_stack sets a guard page past the end of the new
- // stack so that stack underflow will result in an access violation
+ // stack so that stack overflow will result in an access violation
// instead of weird, subtle, possibly undiagnosed memory stomps.
try
@@ -355,10 +355,12 @@ void LLCoros::toplevel(std::string name, callable_t callable)
// set it as current
mCurrent.reset(&corodata);
+ LL_DEBUGS("LLCoros") << "entering " << name << LL_ENDL;
// run the code the caller actually wants in the coroutine
try
{
sehandle(callable);
+ LL_DEBUGS("LLCoros") << "done " << name << LL_ENDL;
}
catch (const Stop& exc)
{
@@ -370,7 +372,7 @@ void LLCoros::toplevel(std::string name, callable_t callable)
// Any uncaught exception derived from LLContinueError will be caught
// here and logged. This coroutine will terminate but the rest of the
// viewer will carry on.
- LOG_UNHANDLED_EXCEPTION(stringize("coroutine ", name));
+ LOG_UNHANDLED_EXCEPTION("coroutine " + name);
}
catch (...)
{