[Interest] Default stack size of QThread

Thiago Macieira thiago.macieira at intel.com
Tue Aug 29 21:53:22 CEST 2023


On Monday, 28 August 2023 23:34:26 PDT Ramakanth Kesireddy wrote:
> Thanks for your feedback.
> As we donot set any stack size for QThread and it looks like it runs out of
> default stack size limit during long running operation. Hence would like to
> measure the cumulative stack variables used in a thread so as to set stack
> size of QThread accordingly.

That's not how stacks work: long-running has nothing to do with the size of 
the stack. What matters for stack depth is just that: how deeply do you 
recurse.

So I repeat the question: why do you think you need to change anything? Do you 
have a concrete problem?

Because if you don't, it looks like you're trying to solve a problem that 
doesn't exist out of a misunderstanding of how things work.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230829/ea128844/attachment.bin>


More information about the Interest mailing list