comparison src/os/windows/vm/os_windows.inline.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 59b052799158
children 4ca6dc0799b6
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.
105 105
106 inline int os::close(int fd) { 106 inline int os::close(int fd) {
107 return ::close(fd); 107 return ::close(fd);
108 } 108 }
109 109
110 inline bool os::supports_monotonic_clock() {
111 return win32::_has_performance_count;
112 }
113
110 #ifndef PRODUCT 114 #ifndef PRODUCT
111 #define CALL_TEST_FUNC_WITH_WRAPPER_IF_NEEDED(f) \ 115 #define CALL_TEST_FUNC_WITH_WRAPPER_IF_NEEDED(f) \
112 os::win32::call_test_func_with_wrapper(f) 116 os::win32::call_test_func_with_wrapper(f)
113 #endif 117 #endif
114 118