equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2012, 2014 SAP AG. All rights reserved. |
3 * Copyright 2012, 2014 SAP AG. 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 |
487 //////////////////////////////////////////////////////////////////////////////// |
487 //////////////////////////////////////////////////////////////////////////////// |
488 // thread stack |
488 // thread stack |
489 |
489 |
490 size_t os::Aix::min_stack_allowed = 128*K; |
490 size_t os::Aix::min_stack_allowed = 128*K; |
491 |
491 |
492 // Aix is always in floating stack mode. The stack size for a new |
|
493 // thread can be set via pthread_attr_setstacksize(). |
|
494 bool os::Aix::supports_variable_stack_size() { return true; } |
|
495 |
|
496 // return default stack size for thr_type |
492 // return default stack size for thr_type |
497 size_t os::Aix::default_stack_size(os::ThreadType thr_type) { |
493 size_t os::Aix::default_stack_size(os::ThreadType thr_type) { |
498 // default stack size (compiler thread needs larger stack) |
494 // default stack size (compiler thread needs larger stack) |
499 // Notice that the setting for compiler threads here have no impact |
495 // Notice that the setting for compiler threads here have no impact |
500 // because of the strange 'fallback logic' in os::create_thread(). |
496 // because of the strange 'fallback logic' in os::create_thread(). |