Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8134540: Much nearly duplicated code for PerfMemory support
Reviewed-by: coleenp, dholmes
  • Loading branch information
Harold Seigel committed Jan 19, 2021
1 parent a9519c8 commit 82adfb32338f7b9d2007d1a878945b1368c0d7c9
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 2,625 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2018 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@@ -69,18 +69,6 @@ inline int os::ftruncate(int fd, jlong length) {
return ::ftruncate64(fd, length);
}

// macros for restartable system calls

#define RESTARTABLE(_cmd, _result) do { \
_result = _cmd; \
} while(((int)_result == OS_ERR) && (errno == EINTR))

#define RESTARTABLE_RETURN_INT(_cmd) do { \
int _result; \
RESTARTABLE(_cmd, _result); \
return _result; \
} while(false)

// We don't have NUMA support on Aix, but we need this for compilation.
inline bool os::numa_has_static_binding() { ShouldNotReachHere(); return true; }
inline bool os::numa_has_group_homing() { ShouldNotReachHere(); return false; }
@@ -91,10 +79,6 @@ inline size_t os::write(int fd, const void *buf, unsigned int nBytes) {
return res;
}

inline int os::close(int fd) {
return ::close(fd);
}

inline int os::socket_close(int fd) {
return ::close(fd);
}

0 comments on commit 82adfb3

Please sign in to comment.