hotspot/src/os/linux/vm/os_linux.inline.hpp
changeset 22891 1f5d1fff23fa
parent 18025 b7bcf7497f93
child 24351 61b33cc6d3cf
equal deleted inserted replaced
22890:7ca31eb1a41f 22891:1f5d1fff23fa
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 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.
   286 inline int os::set_sock_opt(int fd, int level, int optname,
   286 inline int os::set_sock_opt(int fd, int level, int optname,
   287                             const char* optval, socklen_t optlen) {
   287                             const char* optval, socklen_t optlen) {
   288   return ::setsockopt(fd, level, optname, optval, optlen);
   288   return ::setsockopt(fd, level, optname, optval, optlen);
   289 }
   289 }
   290 
   290 
       
   291 inline bool os::supports_monotonic_clock() {
       
   292   return Linux::_clock_gettime != NULL;
       
   293 }
       
   294 
   291 #endif // OS_LINUX_VM_OS_LINUX_INLINE_HPP
   295 #endif // OS_LINUX_VM_OS_LINUX_INLINE_HPP