aboutsummaryrefslogtreecommitdiff
path: root/src/os/linux
diff options
context:
space:
mode:
authorjohnc <none@none>2012-08-29 13:02:54 -0700
committerjohnc <none@none>2012-08-29 13:02:54 -0700
commit23c58bf89c45bd6ebb3b1ba8517cb9593c6e2cf3 (patch)
tree76dea284d68fe8c20537d08e89d33bdfd47783f2 /src/os/linux
parent6b07129214571ecadbb270f84c69f85bb868c646 (diff)
7194409: os::javaTimeNanos() shows hot on CPU_CLK_UNHALTED profiles
Summary: Add inline directives to os::Linux::supports_monotonic_clock() and os::Bsd::supports_monotonic_clock(). Reviewed-by: johnc, azeemj, mikael Contributed-by: Brandon Mitchell <brandon@twitter.com>
Diffstat (limited to 'src/os/linux')
-rw-r--r--src/os/linux/vm/os_linux.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/linux/vm/os_linux.hpp b/src/os/linux/vm/os_linux.hpp
index 0f0fa214a..7bbc041ed 100644
--- a/src/os/linux/vm/os_linux.hpp
+++ b/src/os/linux/vm/os_linux.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2012, 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
@@ -178,7 +178,7 @@ class Linux {
// fast POSIX clocks support
static void fast_thread_clock_init(void);
- static bool supports_monotonic_clock() {
+ static inline bool supports_monotonic_clock() {
return _clock_gettime != NULL;
}