• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Increasing your app's stack size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Increasing your app's stack size


  • Subject: Re: Increasing your app's stack size
  • From: "Shawn Erickson" <email@hidden>
  • Date: Thu, 20 Sep 2007 19:02:22 -0700

On 9/20/07, Scott Ribe <email@hidden> wrote:
> Unless you're allocating huge arrays on the stack, you're not overflowing
> it. Unlike OS 9, under OS X the default stack size is quite large (for
> thread 0, not so large for other threads) since the VM can map it in as
> needed for stack growth, rather than allocating it all at launch.

An example of stack allocation from Safari... (vmmap Safari) ...on a
10.4.10 system.

Stack                  b001e000-b009e000 [  512K] rw-/rwx SM=PRV  thread 1
Stack                  b009f000-b011f000 [  512K] rw-/rwx SM=PRV  thread 4
Stack                  b0120000-b01a0000 [  512K] rw-/rwx SM=PRV  thread 2
Stack                  b01a1000-b0221000 [  512K] rw-/rwx SM=PRV  thread 3
Stack                  b0222000-b0231000 [   60K] rw-/rwx SM=PRV  thread 5
Stack                  b02b3000-b0333000 [  512K] rw-/rwx SM=PRV  thread 25
Stack                  b0334000-b03b4000 [  512K] rw-/rwx SM=PRV  thread 6
Stack                  b03b5000-b0435000 [  512K] rw-/rwx SM=PRV  thread 7
Stack                  b0436000-b04b6000 [  512K] rw-/rwx SM=PRV  thread 8
Stack                  b04b7000-b0537000 [  512K] rw-/rwx SM=COW  thread 9
Stack                  b053e000-b05b8000 [  488K] rw-/rwx SM=COW  thread 21
Stack                  b05b9000-b0639000 [  512K] rw-/rwx SM=COW  thread 11
Stack                  b063a000-b06ba000 [  512K] rw-/rwx SM=COW  thread 10
Stack                  b06bb000-b073b000 [  512K] rw-/rwx SM=PRV  thread 12
Stack                  b0780000-b07fa000 [  488K] rw-/rwx SM=PRV  thread 13
Stack                  b0801000-b087b000 [  488K] rw-/rwx SM=PRV  thread 14
Stack                  b0882000-b08fc000 [  488K] rw-/rwx SM=COW  thread 15
Stack                  b0903000-b097d000 [  488K] rw-/rwx SM=PRV  thread 16
Stack                  b0984000-b09fe000 [  488K] rw-/rwx SM=COW  thread 17
Stack                  b09ff000-b0a7f000 [  512K] rw-/rwx SM=PRV  thread 18
Stack                  b0a86000-b0b00000 [  488K] rw-/rwx SM=PRV  thread 19
Stack                  b0b07000-b0b81000 [  488K] rw-/rwx SM=COW  thread 20
Stack                  b0d8c000-b0e06000 [  488K] rw-/rwx SM=COW  thread 22
Stack                  b0f0f000-b0f89000 [  488K] rw-/rwx SM=COW  thread 23
Stack                  b0f90000-b100a000 [  488K] rw-/rwx SM=COW  thread 24
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Increasing your app's stack size
      • From: Scott Ribe <email@hidden>
References: 
 >Increasing your app's stack size (From: Mark Thomas <email@hidden>)
 >Re: Increasing your app's stack size (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: C local auto-initialized?
  • Next by Date: Re: C local auto-initialized?
  • Previous by thread: Re: Increasing your app's stack size
  • Next by thread: Re: Increasing your app's stack size
  • Index(es):
    • Date
    • Thread