hotspot/src/os/linux/vm/os_linux.inline.hpp
changeset 22891 1f5d1fff23fa
parent 18025 b7bcf7497f93
child 24351 61b33cc6d3cf
--- a/hotspot/src/os/linux/vm/os_linux.inline.hpp	Wed Feb 19 02:58:13 2014 +0000
+++ b/hotspot/src/os/linux/vm/os_linux.inline.hpp	Wed Feb 19 16:22:15 2014 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -288,4 +288,8 @@
   return ::setsockopt(fd, level, optname, optval, optlen);
 }
 
+inline bool os::supports_monotonic_clock() {
+  return Linux::_clock_gettime != NULL;
+}
+
 #endif // OS_LINUX_VM_OS_LINUX_INLINE_HPP