Deutsch English Français Italiano |
<vmd7db$3vqp0$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.arch Subject: Re: Segments Date: Fri, 17 Jan 2025 10:20:43 +0100 Organization: A noiseless patient Spider Lines: 28 Message-ID: <vmd7db$3vqp0$1@dont-email.me> References: <vdlgl9$3kq50$2@dont-email.me> <bdZeP.23664$Hfb1.16566@fx46.iad> <vlj1pg$25p0e$1@dont-email.me> <87cygo97dl.fsf@nosuchdomain.example.com> <vm7mvi$2rr87$1@dont-email.me> <20250115140026.00003f4f@yahoo.com> <vm8t42$3221i$1@dont-email.me> <20250115222824.000034d6@yahoo.com> <vm97j3$342b3$1@dont-email.me> <vmar0d$3g078$1@dont-email.me> <20250116143532.00002117@yahoo.com> <vmavsb$3gpni$1@dont-email.me> <vmbd4n$3v6su$3@paganini.bofh.team> <vmbsvr$3lpar$1@dont-email.me> <r1fiP.189541$FOb4.58758@fx15.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 17 Jan 2025 10:20:43 +0100 (CET) Injection-Info: dont-email.me; posting-host="eac6ea3806850550cb7a14bb1d188128"; logging-data="4188960"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UcNv1svWs5Lb9A7SfFimFk2G1/ImGW5s=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:R0aQcIpc5C++7UW7tSPrWUhaCo8= In-Reply-To: <r1fiP.189541$FOb4.58758@fx15.iad> Content-Language: en-GB Bytes: 2707 On 16/01/2025 22:40, Scott Lurndal wrote: > David Brown <david.brown@hesbynett.no> writes: >> On 16/01/2025 17:46, Waldek Hebisch wrote: > >> You don't allocate anything in a VLA without knowing the bounds and >> being sure it is appropriate to put on the stack. You don't allocate >> anything on the heap without knowing the bounds and being sure it is >> appropriate. There's no fundamental difference - it's just the cut-off >> point that is different. >> >> The stack on Linux is 10 MB by default, and 1 MB by default on Windows. > > On all the linux systems I use, the stack limit defaults to 8192KB. OK. The details don't matter much here. (Of course, if you are intending to put large objects on the stack, then the details /do/ matter, and you probably want to specify a minimum stack size explicitly.) > > That includes RHEL, Fedora, CentOS, Scientific Linux and Ubuntu. > > Now, that's for the primary thread stack, for which the OS > manages the growth. For other threads in the process, > the size varies based on the threads library in use > and whether the application is compiled for 32-bit or > 64-bit systems. >