comparison src/os/windows/vm/os_windows.hpp @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents bb9356ec5967
children 52b4284cb496
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
1 /* 1 /*
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, 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.
23 */ 23 */
24 24
25 #ifndef OS_WINDOWS_VM_OS_WINDOWS_HPP 25 #ifndef OS_WINDOWS_VM_OS_WINDOWS_HPP
26 #define OS_WINDOWS_VM_OS_WINDOWS_HPP 26 #define OS_WINDOWS_VM_OS_WINDOWS_HPP
27 // Win32_OS defines the interface to windows operating systems 27 // Win32_OS defines the interface to windows operating systems
28
29 // Information about the protection of the page at address '0' on this os.
30 static bool zero_page_read_protected() { return true; }
31 28
32 class win32 { 29 class win32 {
33 friend class os; 30 friend class os;
34 31
35 protected: 32 protected:
40 static julong _physical_memory; 37 static julong _physical_memory;
41 static size_t _default_stack_size; 38 static size_t _default_stack_size;
42 static bool _is_nt; 39 static bool _is_nt;
43 static bool _is_windows_2003; 40 static bool _is_windows_2003;
44 static bool _is_windows_server; 41 static bool _is_windows_server;
45 static bool _has_performance_count;
46 42
47 static void print_windows_version(outputStream* st); 43 static void print_windows_version(outputStream* st);
48 44
49 public: 45 public:
50 // Windows-specific interface: 46 // Windows-specific interface:
62 static julong physical_memory() { return _physical_memory; } 58 static julong physical_memory() { return _physical_memory; }
63 59
64 // load dll from Windows system directory or Windows directory 60 // load dll from Windows system directory or Windows directory
65 static HINSTANCE load_Windows_dll(const char* name, char *ebuf, int ebuflen); 61 static HINSTANCE load_Windows_dll(const char* name, char *ebuf, int ebuflen);
66 62
67 private:
68 static void initialize_performance_counter();
69
70 public: 63 public:
71 // Generic interface: 64 // Generic interface:
72 65
73 // Trace number of created threads 66 // Trace number of created threads
74 static intx _os_thread_limit; 67 static intx _os_thread_limit;