hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
changeset 32080 9d2ace436482
parent 31128 024d19662029
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
   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);