Skip to content

Commit

Permalink
Merge pull request #5204 from pshipton/zosstack
Browse files Browse the repository at this point in the history
Set the z/OS 64-bit default OS stack size to 1MB
  • Loading branch information
DanHeidinga committed Mar 22, 2019
2 parents 0713712 + 87919b7 commit 2b55c0b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions runtime/oti/j9cfg_builder.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1998, 2018 IBM Corp. and others
* Copyright (c) 1998, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -95,9 +95,12 @@
#define J9_JIT_DATA_CACHE_SIZE (8 * 1024 * 1024)
#endif /* J9VM_ARCH_X86 && !J9VM_ENV_DATA64 */

#if defined(J9ZOS390) && defined(J9VM_GC_COMPRESSED_POINTERS)
#define J9_OS_STACK_SIZE (384 * 1024)
#else /* J9ZOS390 && J9VM_GC_COMPRESSED_POINTERS */
#if defined(J9ZOS390) && defined(J9VM_ENV_DATA64)
/* Use a 1MB OS stack on z/OS 64-bit as this is what the OS
* allocates anyway, using IARV64 GETSTOR to allocate a segment.
*/
#define J9_OS_STACK_SIZE (1024 * 1024)
#else /* J9ZOS390 && J9VM_ENV_DATA64 */
#define J9_OS_STACK_SIZE (256 * 1024)
#endif

Expand Down

0 comments on commit 2b55c0b

Please sign in to comment.