This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 6e322fa582 configure: warn about excessive stack usage
6e322fa582 is described below

commit 6e322fa58263d61a5517182010405c09656673af
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Sat Feb 28 03:45:20 2026 +0100
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Thu Mar 5 16:02:04 2026 +0000

    configure: warn about excessive stack usage
    
    Use a 120 KiB per-function threshold. This roughly matches the default
    thread stack size on Musl, which is 128 KiB, leaving some headroom for
    caller frames.
    
    This warning draws attention to functions in the codebase that may have
    excessively large stack frames. A few functions could benefit from
    reducing their frame size.
    
    120 KiB is a reasonable limit. If a function requires more stack, it
    likely would benefit from restructuring the code.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 configure | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure b/configure
index 1bfc08bc69..1759694274 100755
--- a/configure
+++ b/configure
@@ -7877,6 +7877,10 @@ check_warning -Wwrite-strings
 check_warning -Wtype-limits
 check_warning -Wundef
 check_warning -Wempty-body
+# Warn about excessive stack usage, using a 120 KiB per-function threshold.
+# This roughly matches the default thread stack size on Musl, which is 128 KiB,
+# leaving some headroom for caller frames.
+check_warning -Wstack-usage=122880
 check_c_warning -Wmissing-prototypes
 check_c_warning -Wstrict-prototypes
 check_c_warning -Wunterminated-string-initialization

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to