mirror of
https://github.com/opencv/opencv.git
synced 2026-11-21 00:35:35 -06:00
MatExprInvoker::operator() previously allocated two cv::AutoBuffer<uchar, 16 * 1024 + 64> instances (scratchBuf and tstoreBuf) simultaneously on the stack, consuming over 32 KB per buffer and pushing the stack frame over 36 KB. Furthermore, capElems = 16 * 1024 could allocate up to 128 KB (16K * 8 bytes for CV_64F) before even accounting for multiple scratch slots, exceeding a typical 32 KB L1 data cache.