hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
changeset 32080 9d2ace436482
parent 30129 351788433103
child 33105 294e48b4f704
equal deleted inserted replaced
32079:654a242d6dc8 32080:9d2ace436482
     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
   288 ///////////////////////////////////////////////////////////////////////////////
   288 ///////////////////////////////////////////////////////////////////////////////
   289 // thread stack
   289 // thread stack
   290 
   290 
   291 size_t os::Bsd::min_stack_allowed = 64 * K;
   291 size_t os::Bsd::min_stack_allowed = 64 * K;
   292 
   292 
   293 bool os::Bsd::supports_variable_stack_size() {
       
   294   return true;
       
   295 }
       
   296 
       
   297 size_t os::Bsd::default_stack_size(os::ThreadType thr_type) {
   293 size_t os::Bsd::default_stack_size(os::ThreadType thr_type) {
   298 #ifdef _LP64
   294 #ifdef _LP64
   299   size_t s = (thr_type == os::compiler_thread ? 4 * M : 1 * M);
   295   size_t s = (thr_type == os::compiler_thread ? 4 * M : 1 * M);
   300 #else
   296 #else
   301   size_t s = (thr_type == os::compiler_thread ? 2 * M : 512 * K);
   297   size_t s = (thr_type == os::compiler_thread ? 2 * M : 512 * K);