From 2807c99aaab981772b98b9abe84cd3ff3fcfe7bf Mon Sep 17 00:00:00 2001 From: Hotislandn Date: Sun, 7 Dec 2025 15:32:14 +0800 Subject: [PATCH] basic processing case shows no results with O2 --- utility/benchmarks/thread_metric/tm_basic_processing_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/benchmarks/thread_metric/tm_basic_processing_test.c b/utility/benchmarks/thread_metric/tm_basic_processing_test.c index 27f3e48e6..9b899b58c 100644 --- a/utility/benchmarks/thread_metric/tm_basic_processing_test.c +++ b/utility/benchmarks/thread_metric/tm_basic_processing_test.c @@ -46,7 +46,7 @@ /* Define the counters used in the demo application... */ -unsigned long tm_basic_processing_counter; +volatile unsigned long tm_basic_processing_counter; /* Test array. We will just do a series of calculations on the