equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc. |
3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc. |
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 |
303 /////////////////////////////////////////////////////////////////////////////// |
303 /////////////////////////////////////////////////////////////////////////////// |
304 // thread stack |
304 // thread stack |
305 |
305 |
306 size_t os::Linux::min_stack_allowed = 64 * K; |
306 size_t os::Linux::min_stack_allowed = 64 * K; |
307 |
307 |
308 bool os::Linux::supports_variable_stack_size() { |
|
309 return true; |
|
310 } |
|
311 |
|
312 size_t os::Linux::default_stack_size(os::ThreadType thr_type) { |
308 size_t os::Linux::default_stack_size(os::ThreadType thr_type) { |
313 #ifdef _LP64 |
309 #ifdef _LP64 |
314 size_t s = (thr_type == os::compiler_thread ? 4 * M : 1 * M); |
310 size_t s = (thr_type == os::compiler_thread ? 4 * M : 1 * M); |
315 #else |
311 #else |
316 size_t s = (thr_type == os::compiler_thread ? 2 * M : 512 * K); |
312 size_t s = (thr_type == os::compiler_thread ? 2 * M : 512 * K); |