We need to workaround this somehow. According to this post on the OpenJDK mailing list pthread_get_stacksize_np() returns 2048 pages (8MB) on all OSX versions prior to 10.9. On 10.9 it returns 128 pages (512kB) though the correct value for the main thread is 2048 too by default. This messes up our stack overflow detection. Is this a problem on iOS as well?