jdk/src/java.base/unix/native/libjli/java_md_solinux.c
changeset 46846 292be53258b7
parent 42759 0ff64a5b3824
child 46863 d2d62aec9891
equal deleted inserted replaced
46845:9c029ec7c296 46846:292be53258b7
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   897     pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
   897     pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
   898 
   898 
   899     if (stack_size > 0) {
   899     if (stack_size > 0) {
   900       pthread_attr_setstacksize(&attr, stack_size);
   900       pthread_attr_setstacksize(&attr, stack_size);
   901     }
   901     }
       
   902     pthread_attr_setguardsize(&attr, 0); // no pthread guard page on java threads
   902 
   903 
   903     if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) {
   904     if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) {
   904       void * tmp;
   905       void * tmp;
   905       pthread_join(tid, &tmp);
   906       pthread_join(tid, &tmp);
   906       rslt = (int)(intptr_t)tmp;
   907       rslt = (int)(intptr_t)tmp;