Skip to content

Commit

Permalink
8269687: pauth_aarch64.hpp include name is incorrect
Browse files Browse the repository at this point in the history
Reviewed-by: rbackman, ngasson
  • Loading branch information
a74nh authored and nick-arm committed Aug 23, 2021
1 parent f77a1a1 commit b690f29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/cpu/aarch64/pauth_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
*
*/

#ifndef CPU_AARCH64_PAUTH_AARCH64_INLINE_HPP
#define CPU_AARCH64_PAUTH_AARCH64_INLINE_HPP
#ifndef CPU_AARCH64_PAUTH_AARCH64_HPP
#define CPU_AARCH64_PAUTH_AARCH64_HPP

#include OS_CPU_HEADER_INLINE(pauth)

Expand All @@ -32,4 +32,4 @@ inline bool pauth_ptr_is_raw(address ptr) {
return ptr == pauth_strip_pointer(ptr);
}

#endif // CPU_AARCH64_PAUTH_AARCH64_INLINE_HPP
#endif // CPU_AARCH64_PAUTH_AARCH64_HPP
6 changes: 3 additions & 3 deletions src/hotspot/os_cpu/bsd_aarch64/pauth_bsd_aarch64.inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
*
*/

#ifndef OS_CPU_LINUX_AARCH64_PAUTH_BSD_AARCH64_INLINE_HPP
#define OS_CPU_LINUX_AARCH64_PAUTH_BSD_AARCH64_INLINE_HPP
#ifndef OS_CPU_BSD_AARCH64_PAUTH_BSD_AARCH64_INLINE_HPP
#define OS_CPU_BSD_AARCH64_PAUTH_BSD_AARCH64_INLINE_HPP

#ifdef __APPLE__
#include <ptrauth.h>
Expand All @@ -49,5 +49,5 @@ inline address pauth_strip_pointer(address ptr) {

#undef XPACLRI

#endif // OS_CPU_LINUX_AARCH64_PAUTH_BSD_AARCH64_INLINE_HPP
#endif // OS_CPU_BSD_AARCH64_PAUTH_BSD_AARCH64_INLINE_HPP

Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
*
*/

#ifndef OS_CPU_LINUX_AARCH64_PAUTH_WINDOWS_AARCH64_INLINE_HPP
#define OS_CPU_LINUX_AARCH64_PAUTH_WINDOWS_AARCH64_INLINE_HPP
#ifndef OS_CPU_WINDOWS_AARCH64_PAUTH_WINDOWS_AARCH64_INLINE_HPP
#define OS_CPU_WINDOWS_AARCH64_PAUTH_WINDOWS_AARCH64_INLINE_HPP

inline address pauth_strip_pointer(address ptr) {
// No PAC support in windows as of yet.
return ptr;
}

#endif // OS_CPU_LINUX_AARCH64_PAUTH_WINDOWS_AARCH64_INLINE_HPP
#endif // OS_CPU_WINDOWS_AARCH64_PAUTH_WINDOWS_AARCH64_INLINE_HPP

1 comment on commit b690f29

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.