Files
opencv-MIRROR/modules/core/src
Vincent Rabaud d4a4497e38 outline 4KB temp scratch buffers in TExpr::exec
Even after 0e20693a8d reduced the inline temp scratch buffers from 16KB
to 4KB, Clang hoists the fast-strip `scratchBuf` (~4.3KB) into
`TExpr::exec()`'s prologue when taking the `broadcastOp` path, while the
`broadcastOp` lambda unconditionally reserves another ~4.3KB `tstoreBuf`
on the stack even when `nbuffers == 0`. Together with `arithm_op()` and
`BroadcastOp::run()`, a single `cv::subtract` or `cv::compare` consumes
nearly 19KB of stack space on the calling thread, overflowing 64KB
fiber/coroutine stacks under deep call chains (e.g. `calibrateCameraRO`).

Outline the temp-bearing loops into `noinline` helpers
(`execFastStripWithTemps` and `execTileWithTemps`) and run the
`nbuffers == 0` tile body directly without `tstoreBuf`. This preserves
4KB L1 fragments when temporaries are present while saving ~8.7KB of
stack space on single-op `broadcastOp` calls.
2026-11-03 16:17:42 +01:00
..
2026-05-20 17:57:51 +03:00
2026-07-09 12:17:24 +03:00
2023-01-09 11:08:02 +00:00
2024-11-14 08:33:22 +03:00
2018-09-07 20:33:52 +09:00
2026-05-20 17:29:34 +05:30
2026-05-20 17:29:34 +05:30
2019-03-05 14:47:04 +03:00
2026-07-28 20:28:24 +05:30
2022-03-03 07:21:53 +09:00
2026-10-27 01:06:00 +08:00
2026-07-09 12:17:24 +03:00
2024-02-12 14:20:35 +03:00
2024-11-14 08:33:22 +03:00
2026-10-15 13:13:44 +02:00
2026-09-23 14:28:55 +02:00
2018-02-12 14:14:08 +03:00
2018-08-27 14:42:18 +03:00
2014-08-15 12:09:16 +04:00
2022-02-22 19:55:26 +00:00