comparison src/os/windows/vm/os_windows.hpp @ 14475:6c9332549827

6546236: Thread interrupt() of Thread.sleep() can be lost on Solaris due to race with signal handler Reviewed-by: dholmes, dcubed
author fparain
date Wed, 19 Feb 2014 16:22:15 +0000
parents 5e3b6f79d280
children bb9356ec5967
comparison
equal deleted inserted replaced
14474:de7f1b016d55 14475:6c9332549827
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;