Skip to content

Commit 9b7619c

Browse files
committed
Investivating the issue with 32-bit Android (part 4)
1 parent 561800d commit 9b7619c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Sources/Shared/Core/Logger.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,12 @@ namespace Death { namespace Trace {
350350
void LoggerBackend::SetBacktraceFlushLevel(TraceLevel flushLevel) noexcept
351351
{
352352
#if defined(DEATH_TRACE_ASYNC)
353+
if (!_backtraceStorage) {
354+
_backtraceStorage = std::make_shared<BacktraceStorage>();
355+
}
356+
357+
_backtraceStorage->SetCapacity(8);
358+
353359
_backtraceFlushLevel.store(flushLevel, std::memory_order_relaxed);
354360
#else
355361
_backtraceFlushLevel = flushLevel;
@@ -935,12 +941,12 @@ namespace Death { namespace Trace {
935941
#if defined(DEATH_TRACE_ASYNC)
936942
using namespace Implementation;
937943

938-
while (!EnqueueEntry(InitializeBacktraceRequested, 0, nullptr, nullptr, 0)) {
944+
/*while (!EnqueueEntry(InitializeBacktraceRequested, 0, nullptr, nullptr, 0)) {
939945
std::this_thread::sleep_for(std::chrono::nanoseconds{100});
940-
}
946+
}*/
941947

942948
_backend.SetBacktraceFlushLevel(flushLevel);
943-
_backend.Notify();
949+
//_backend.Notify();
944950
#else
945951
_backend.InitializeBacktrace(maxCapacity);
946952
_backend.SetBacktraceFlushLevel(flushLevel);

0 commit comments

Comments
 (0)