jdk/src/java.base/macosx/native/libjli/java_md_macosx.c
changeset 46846 292be53258b7
parent 42755 902841117c87
child 46863 d2d62aec9891
--- a/jdk/src/java.base/macosx/native/libjli/java_md_macosx.c	Fri Mar 17 08:40:12 2017 -0400
+++ b/jdk/src/java.base/macosx/native/libjli/java_md_macosx.c	Fri Mar 17 15:41:14 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -886,6 +886,7 @@
     if (stack_size > 0) {
       pthread_attr_setstacksize(&attr, stack_size);
     }
+    pthread_attr_setguardsize(&attr, 0); // no pthread guard page on java threads
 
     if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) {
       void * tmp;