hotspot/src/os/posix/vm/os_posix.hpp
changeset 41070 496463b4e206
parent 36355 dd339cbafd31
child 42906 1a8db9cf1407
equal deleted inserted replaced
40931:d4d2a4a0e023 41070:496463b4e206
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    40   static void print_rlimit_info(outputStream* st);
    40   static void print_rlimit_info(outputStream* st);
    41   static void print_uname_info(outputStream* st);
    41   static void print_uname_info(outputStream* st);
    42   static void print_libversion_info(outputStream* st);
    42   static void print_libversion_info(outputStream* st);
    43   static void print_load_average(outputStream* st);
    43   static void print_load_average(outputStream* st);
    44 
    44 
       
    45   // Minimum stack size a thread can be created with (allowing
       
    46   // the VM to completely create the thread and enter user code)
       
    47   static size_t _compiler_thread_min_stack_allowed;
       
    48   static size_t _java_thread_min_stack_allowed;
       
    49   static size_t _vm_internal_thread_min_stack_allowed;
       
    50 
    45 public:
    51 public:
       
    52   // Return default stack size for the specified thread type
       
    53   static size_t default_stack_size(os::ThreadType thr_type);
       
    54   // Check and sets minimum stack sizes
       
    55   static jint set_minimum_stack_sizes();
       
    56   static size_t get_initial_stack_size(ThreadType thr_type, size_t req_stack_size);
    46 
    57 
    47   // Returns true if signal is valid.
    58   // Returns true if signal is valid.
    48   static bool is_valid_signal(int sig);
    59   static bool is_valid_signal(int sig);
    49 
    60 
    50   // Helper function, returns a string (e.g. "SIGILL") for a signal.
    61   // Helper function, returns a string (e.g. "SIGILL") for a signal.