From 0b4e603cfd6d1a1cd2be46b5928b8893af917485 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Tue, 20 Oct 2026 14:35:07 +0200 Subject: [PATCH] STRATA_ACT_DUMP: keep the accumulator alive for the exit flush --- src/kernels/cpu/native_expert.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernels/cpu/native_expert.cpp b/src/kernels/cpu/native_expert.cpp index 66ec2db0..0e8f92c4 100644 --- a/src/kernels/cpu/native_expert.cpp +++ b/src/kernels/cpu/native_expert.cpp @@ -170,8 +170,8 @@ struct ActDump { static void act_dump_flush(); }; ActDump& act_dump() { - static ActDump d; - return d; + static ActDump* d = new ActDump; // never destroyed: the atexit flush must still find it + return *d; } void ActDump::act_dump_flush() { ActDump& d = act_dump();