summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2025-09-16 11:32:21 -0400
committerGitHub <[email protected]>2025-09-16 11:32:21 -0400
commita17fd83e947edd9565984a496eaf602cba348705 (patch)
treeeb2b947150fb4c99b98925034f067240b6551bc1
parentd22057ee895fb583c06154c5182d582d50cb7412 (diff)
parent254b5bf3a726a0e8c8264d3d0020143e67b7360e (diff)
Merge pull request #464 from gzzi/avoid-hang-check-stack
Do not analyze when stack overflow has occured.
-rw-r--r--common/inc/tx_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/inc/tx_thread.h b/common/inc/tx_thread.h
index 6500d40d..8729263d 100644
--- a/common/inc/tx_thread.h
+++ b/common/inc/tx_thread.h
@@ -239,7 +239,7 @@
_tx_thread_stack_error_handler((thread_ptr)); \
TX_DISABLE \
} \
- if (*(((ULONG *) (thread_ptr) -> tx_thread_stack_highest_ptr) - 1) != TX_STACK_FILL) \
+ else if (*(((ULONG *) (thread_ptr) -> tx_thread_stack_highest_ptr) - 1) != TX_STACK_FILL) \
{ \
TX_RESTORE \
_tx_thread_stack_analyze((thread_ptr)); \