src/hotspot/share/runtime/os.inline.hpp
author stuefe
Fri, 07 Sep 2018 07:52:35 +0200
branchstuefe-statistical-history
changeset 57221 9653470b7294
parent 53266 57d8566a2732
permissions -rw-r--r--
Initial implementation of statistical history (JDK-8212618)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25468
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 47216
diff changeset
     2
 * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
25468
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
     4
 *
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
     7
 * published by the Free Software Foundation.
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
     8
 *
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    13
 * accompanied this code).
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    14
 *
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    18
 *
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    21
 * questions.
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    22
 *
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    23
 */
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    24
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 47216
diff changeset
    25
#ifndef SHARE_RUNTIME_OS_INLINE_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 47216
diff changeset
    26
#define SHARE_RUNTIME_OS_INLINE_HPP
25468
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    27
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    28
#include "runtime/os.hpp"
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    29
53266
57d8566a2732 8214816: os::read() should not transition to _thread_blocked with safepoint check on Solaris
dholmes
parents: 53244
diff changeset
    30
inline ssize_t os::read(int fd, void *buf, unsigned int nBytes) {
57d8566a2732 8214816: os::read() should not transition to _thread_blocked with safepoint check on Solaris
dholmes
parents: 53244
diff changeset
    31
  return ::read(fd, buf, nBytes);
57d8566a2732 8214816: os::read() should not transition to _thread_blocked with safepoint check on Solaris
dholmes
parents: 53244
diff changeset
    32
}
57d8566a2732 8214816: os::read() should not transition to _thread_blocked with safepoint check on Solaris
dholmes
parents: 53244
diff changeset
    33
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 25468
diff changeset
    34
#include OS_HEADER_INLINE(os)
25468
5331df506290 8048241: Introduce umbrella header os.inline.hpp and clean up includes
goetz
parents:
diff changeset
    35
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 47216
diff changeset
    36
#endif // SHARE_RUNTIME_OS_INLINE_HPP