hotspot/src/os/windows/vm/os_windows.hpp
changeset 22891 1f5d1fff23fa
parent 18943 7d0ef675e808
child 22894 870fbe165d06
equal deleted inserted replaced
22890:7ca31eb1a41f 22891:1f5d1fff23fa
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, 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.
    37   static julong _physical_memory;
    37   static julong _physical_memory;
    38   static size_t _default_stack_size;
    38   static size_t _default_stack_size;
    39   static bool   _is_nt;
    39   static bool   _is_nt;
    40   static bool   _is_windows_2003;
    40   static bool   _is_windows_2003;
    41   static bool   _is_windows_server;
    41   static bool   _is_windows_server;
       
    42   static bool   _has_performance_count;
    42 
    43 
    43   static void print_windows_version(outputStream* st);
    44   static void print_windows_version(outputStream* st);
    44 
    45 
    45  public:
    46  public:
    46   // Windows-specific interface:
    47   // Windows-specific interface:
    58   static julong physical_memory() { return _physical_memory; }
    59   static julong physical_memory() { return _physical_memory; }
    59 
    60 
    60   // load dll from Windows system directory or Windows directory
    61   // load dll from Windows system directory or Windows directory
    61   static HINSTANCE load_Windows_dll(const char* name, char *ebuf, int ebuflen);
    62   static HINSTANCE load_Windows_dll(const char* name, char *ebuf, int ebuflen);
    62 
    63 
       
    64   private:
       
    65     static void initialize_performance_counter();
       
    66 
    63  public:
    67  public:
    64   // Generic interface:
    68   // Generic interface:
    65 
    69 
    66   // Trace number of created threads
    70   // Trace number of created threads
    67   static          intx  _os_thread_limit;
    71   static          intx  _os_thread_limit;