set default stack size to 16384
grow stack size if stack gc fails to recover enough space