Increase Windows x86 main thread stack size to 1.5MB

This patch changes the stack size of Windows x86 (32 bits) to
1.5MB.

x64 was changed to 8MB in r673432 (crrev.com/c/1681500). We
see fair number of stack overflows on x86, primarily on Win7,
and that this patch is to mitigate them.

This patch changes the process default stack size because
|RendererMain| runs on the main thread of the renderer
process. However, to mitigate the address space pressure,
this patch also changes |CreateThreadInternal| to set the
reserve stack size back to 1MB unless the caller request
specific size.

Bug: 977387
Change-Id: I3968ec84df22631a3029fc1f0ddf525be0d329d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1682227
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#675518}
2 files changed