equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, 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. |
36 static int _processor_level; |
36 static int _processor_level; |
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 |
42 |
42 public: |
43 public: |
43 // Windows-specific interface: |
44 // Windows-specific interface: |
44 static void initialize_system_info(); |
45 static void initialize_system_info(); |
45 static void setmode_streams(); |
46 static void setmode_streams(); |
61 static intx _os_thread_limit; |
62 static intx _os_thread_limit; |
62 static volatile intx _os_thread_count; |
63 static volatile intx _os_thread_count; |
63 |
64 |
64 // Tells whether the platform is NT or Windown95 |
65 // Tells whether the platform is NT or Windown95 |
65 static bool is_nt() { return _is_nt; } |
66 static bool is_nt() { return _is_nt; } |
|
67 |
|
68 // Tells whether this is a server version of Windows |
|
69 static bool is_windows_server() { return _is_windows_server; } |
66 |
70 |
67 // Tells whether the platform is Windows 2003 |
71 // Tells whether the platform is Windows 2003 |
68 static bool is_windows_2003() { return _is_windows_2003; } |
72 static bool is_windows_2003() { return _is_windows_2003; } |
69 |
73 |
70 // Returns the byte size of a virtual memory page |
74 // Returns the byte size of a virtual memory page |