equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2013, 2016 SAP SE. All rights reserved. |
3 * Copyright (c) 2013, 2016 SAP SE. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
137 static struct sigaction *get_chained_signal_action(int sig); |
137 static struct sigaction *get_chained_signal_action(int sig); |
138 static bool chained_handler(int sig, siginfo_t* siginfo, void* context); |
138 static bool chained_handler(int sig, siginfo_t* siginfo, void* context); |
139 |
139 |
140 // libpthread version string |
140 // libpthread version string |
141 static void libpthread_init(); |
141 static void libpthread_init(); |
142 |
|
143 // Minimum stack size a thread can be created with (allowing |
|
144 // the VM to completely create the thread and enter user code) |
|
145 static size_t min_stack_allowed; |
|
146 |
|
147 // Return default stack size or guard size for the specified thread type |
|
148 static size_t default_stack_size(os::ThreadType thr_type); |
|
149 static size_t default_guard_size(os::ThreadType thr_type); |
|
150 |
142 |
151 // Function returns true if we run on OS/400 (pase), false if we run |
143 // Function returns true if we run on OS/400 (pase), false if we run |
152 // on AIX. |
144 // on AIX. |
153 static bool on_pase() { |
145 static bool on_pase() { |
154 assert(_on_pase != -1, "not initialized"); |
146 assert(_on_pase != -1, "not initialized"); |