Mercurial > hg > graal-compiler
diff src/os/linux/vm/os_linux.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 |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.hpp Tue Apr 01 14:09:03 2014 +0200 +++ b/src/os/linux/vm/os_linux.hpp Tue Apr 01 13:57:07 2014 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2013, 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 @@ -30,9 +30,6 @@ /* pthread_getattr_np comes with LinuxThreads-0.9-7 on RedHat 7.1 */ typedef int (*pthread_getattr_func_type) (pthread_t, pthread_attr_t *); -// Information about the protection of the page at address '0' on this os. -static bool zero_page_read_protected() { return true; } - class Linux { friend class os; friend class TestReserveMemorySpecial; @@ -206,6 +203,10 @@ // fast POSIX clocks support static void fast_thread_clock_init(void); + static inline bool supports_monotonic_clock() { + return _clock_gettime != NULL; + } + static int clock_gettime(clockid_t clock_id, struct timespec *tp) { return _clock_gettime ? _clock_gettime(clock_id, tp) : -1; }