Thank you Dianne,
On Nov 16, 10:05 am, Dianne Hackborn <
hack...@android.com> wrote:
> The required stack size depends entirely on what you are doing in that
> thread. Since the NDK doesn't have an HTTP stack, I can't say what is
> required by whatever HTTP stack you are using.
I am using CURL 7.21.0 with OpenSSL 1.0. Both of course compiled as
static
libraries with my shared library loaded by Android application. Most
of connections
are HTTPS. And URLs are defined as FQDN, requiring DNS lookup.
Based on profiling it does look that it takes more memory that I
expected.
> Also there is generally little benefit to giving yourself trouble by trying
> to keep stacks small. The space reserved for the stack doesn't take RAM
> until it is actually needed; it is just reserved address space.
Thanks, but what exactly is considered small on Android?
> On Mon, Nov 15, 2010 at 9:37 PM, Srdjan Pantic <
srd...@pantic.info> wrote:
> > I have an application that heavily uses NDK. It creates seven native
> > threads and four of them are doing HTTP connections. For some reason
> > sometime sometimes thread crashes on outbound HTTP connection without
> > stack trace.
>
> > UI is based on WebView if you wonder. I am adding SIG handlers to
> > intercept this crash, but I cannot see why it would fail.
>
> > By default I was using stack size of 8 KB which was fine on some other
> > embedded systems. Increasing it to 32 KB helped a lot. What should be
> > recommended stack size for native threads?
>
> > I/native_log ( 3077): POSThttps://
repository.pantic.info/log/collector
> > I/native_log ( 3077): connect()
> > I/WindowManager( 98): WIN DEATH: Window{462a43e0 info.pantic.client/
> > info.pantic.WebViewActivity paused=false}
> > I/ActivityManager( 98): Process info.pantic.client (pid 3077) has
> > died.
> > D/Zygote ( 64): Process 3077 terminated by signal (11)
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to
andro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
android-ndk...@googlegroups.com<
android-ndk%2Bunsu...@googlegroups.com>
> > .
>
hack...@android.com