8268119: Rename copy_os_cpu.inline.hpp files to copy_os_cpu.hpp
Reviewed-by: kbarrett, coleenp
This commit is contained in:
parent
178343750f
commit
1296a6c425
@ -26,11 +26,7 @@
|
|||||||
#ifndef CPU_AARCH64_COPY_AARCH64_HPP
|
#ifndef CPU_AARCH64_COPY_AARCH64_HPP
|
||||||
#define CPU_AARCH64_COPY_AARCH64_HPP
|
#define CPU_AARCH64_COPY_AARCH64_HPP
|
||||||
|
|
||||||
// Inline functions for memory copy and fill.
|
#include OS_CPU_HEADER(copy)
|
||||||
|
|
||||||
// Contains inline asm implementations
|
|
||||||
#include OS_CPU_HEADER_INLINE(copy)
|
|
||||||
|
|
||||||
|
|
||||||
static void pd_fill_to_words(HeapWord* tohw, size_t count, juint value) {
|
static void pd_fill_to_words(HeapWord* tohw, size_t count, juint value) {
|
||||||
julong* to = (julong*) tohw;
|
julong* to = (julong*) tohw;
|
||||||
|
@ -25,12 +25,7 @@
|
|||||||
#ifndef CPU_ARM_COPY_ARM_HPP
|
#ifndef CPU_ARM_COPY_ARM_HPP
|
||||||
#define CPU_ARM_COPY_ARM_HPP
|
#define CPU_ARM_COPY_ARM_HPP
|
||||||
|
|
||||||
#include "utilities/macros.hpp"
|
#include OS_CPU_HEADER(copy)
|
||||||
|
|
||||||
// Inline functions for memory copy and fill.
|
|
||||||
|
|
||||||
// Contains inline asm implementations
|
|
||||||
#include OS_CPU_HEADER_INLINE(copy)
|
|
||||||
|
|
||||||
static void pd_fill_to_words(HeapWord* tohw, size_t count, juint value) {
|
static void pd_fill_to_words(HeapWord* tohw, size_t count, juint value) {
|
||||||
juint* to = (juint*)tohw;
|
juint* to = (juint*)tohw;
|
||||||
|
@ -25,10 +25,7 @@
|
|||||||
#ifndef CPU_X86_COPY_X86_HPP
|
#ifndef CPU_X86_COPY_X86_HPP
|
||||||
#define CPU_X86_COPY_X86_HPP
|
#define CPU_X86_COPY_X86_HPP
|
||||||
|
|
||||||
// Inline functions for memory copy and fill.
|
#include OS_CPU_HEADER(copy)
|
||||||
|
|
||||||
// Contains inline asm implementations
|
|
||||||
#include OS_CPU_HEADER_INLINE(copy)
|
|
||||||
|
|
||||||
static void pd_fill_to_words(HeapWord* tohw, size_t count, juint value) {
|
static void pd_fill_to_words(HeapWord* tohw, size_t count, juint value) {
|
||||||
#ifdef AMD64
|
#ifdef AMD64
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OS_CPU_BSD_AARCH64_COPY_BSD_AARCH64_INLINE_HPP
|
#ifndef OS_CPU_BSD_AARCH64_COPY_BSD_AARCH64_HPP
|
||||||
#define OS_CPU_BSD_AARCH64_COPY_BSD_AARCH64_INLINE_HPP
|
#define OS_CPU_BSD_AARCH64_COPY_BSD_AARCH64_HPP
|
||||||
|
|
||||||
#define COPY_SMALL(from, to, count) \
|
#define COPY_SMALL(from, to, count) \
|
||||||
{ \
|
{ \
|
||||||
@ -186,4 +186,4 @@ static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t
|
|||||||
_Copy_arrayof_conjoint_jlongs(from, to, count);
|
_Copy_arrayof_conjoint_jlongs(from, to, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // OS_CPU_BSD_AARCH64_COPY_BSD_AARCH64_INLINE_HPP
|
#endif // OS_CPU_BSD_AARCH64_COPY_BSD_AARCH64_HPP
|
@ -22,8 +22,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OS_CPU_BSD_X86_COPY_BSD_X86_INLINE_HPP
|
#ifndef OS_CPU_BSD_X86_COPY_BSD_X86_HPP
|
||||||
#define OS_CPU_BSD_X86_COPY_BSD_X86_INLINE_HPP
|
#define OS_CPU_BSD_X86_COPY_BSD_X86_HPP
|
||||||
|
|
||||||
static void pd_conjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
|
static void pd_conjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
|
||||||
#ifdef AMD64
|
#ifdef AMD64
|
||||||
@ -306,4 +306,4 @@ static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t
|
|||||||
#endif // AMD64
|
#endif // AMD64
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // OS_CPU_BSD_X86_COPY_BSD_X86_INLINE_HPP
|
#endif // OS_CPU_BSD_X86_COPY_BSD_X86_HPP
|
@ -23,8 +23,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OS_CPU_LINUX_AARCH64_COPY_LINUX_AARCH64_INLINE_HPP
|
#ifndef OS_CPU_LINUX_AARCH64_COPY_LINUX_AARCH64_HPP
|
||||||
#define OS_CPU_LINUX_AARCH64_COPY_LINUX_AARCH64_INLINE_HPP
|
#define OS_CPU_LINUX_AARCH64_COPY_LINUX_AARCH64_HPP
|
||||||
|
|
||||||
#define COPY_SMALL(from, to, count) \
|
#define COPY_SMALL(from, to, count) \
|
||||||
{ \
|
{ \
|
||||||
@ -185,4 +185,4 @@ static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t
|
|||||||
_Copy_arrayof_conjoint_jlongs(from, to, count);
|
_Copy_arrayof_conjoint_jlongs(from, to, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // OS_CPU_LINUX_AARCH64_COPY_LINUX_AARCH64_INLINE_HPP
|
#endif // OS_CPU_LINUX_AARCH64_COPY_LINUX_AARCH64_HPP
|
@ -22,8 +22,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OS_CPU_LINUX_ARM_COPY_LINUX_ARM_INLINE_HPP
|
#ifndef OS_CPU_LINUX_ARM_COPY_LINUX_ARM_HPP
|
||||||
#define OS_CPU_LINUX_ARM_COPY_LINUX_ARM_INLINE_HPP
|
#define OS_CPU_LINUX_ARM_COPY_LINUX_ARM_HPP
|
||||||
|
|
||||||
static void pd_conjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
|
static void pd_conjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
|
||||||
_Copy_conjoint_words(from, to, count * HeapWordSize);
|
_Copy_conjoint_words(from, to, count * HeapWordSize);
|
||||||
@ -92,4 +92,4 @@ static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t
|
|||||||
pd_conjoint_oops_atomic((const oop*)from, (oop*)to, count);
|
pd_conjoint_oops_atomic((const oop*)from, (oop*)to, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // OS_CPU_LINUX_ARM_COPY_LINUX_ARM_INLINE_HPP
|
#endif // OS_CPU_LINUX_ARM_COPY_LINUX_ARM_HPP
|
@ -22,8 +22,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OS_CPU_LINUX_X86_COPY_LINUX_X86_INLINE_HPP
|
#ifndef OS_CPU_LINUX_X86_COPY_LINUX_X86_HPP
|
||||||
#define OS_CPU_LINUX_X86_COPY_LINUX_X86_INLINE_HPP
|
#define OS_CPU_LINUX_X86_COPY_LINUX_X86_HPP
|
||||||
|
|
||||||
static void pd_conjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
|
static void pd_conjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
|
||||||
#ifdef AMD64
|
#ifdef AMD64
|
||||||
@ -306,4 +306,4 @@ static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t
|
|||||||
#endif // AMD64
|
#endif // AMD64
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // OS_CPU_LINUX_X86_COPY_LINUX_X86_INLINE_HPP
|
#endif // OS_CPU_LINUX_X86_COPY_LINUX_X86_HPP
|
@ -22,8 +22,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OS_CPU_WINDOWS_AARCH64_COPY_WINDOWS_AARCH64_INLINE_HPP
|
#ifndef OS_CPU_WINDOWS_AARCH64_COPY_WINDOWS_AARCH64_HPP
|
||||||
#define OS_CPU_WINDOWS_AARCH64_COPY_WINDOWS_AARCH64_INLINE_HPP
|
#define OS_CPU_WINDOWS_AARCH64_COPY_WINDOWS_AARCH64_HPP
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -155,4 +155,4 @@ static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t
|
|||||||
pd_conjoint_oops_atomic((const oop*)from, (oop*)to, count);
|
pd_conjoint_oops_atomic((const oop*)from, (oop*)to, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // OS_CPU_WINDOWS_AARCH64_COPY_WINDOWS_AARCH64_INLINE_HPP
|
#endif // OS_CPU_WINDOWS_AARCH64_COPY_WINDOWS_AARCH64_HPP
|
@ -22,8 +22,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OS_CPU_WINDOWS_X86_COPY_WINDOWS_X86_INLINE_HPP
|
#ifndef OS_CPU_WINDOWS_X86_COPY_WINDOWS_X86_HPP
|
||||||
#define OS_CPU_WINDOWS_X86_COPY_WINDOWS_X86_INLINE_HPP
|
#define OS_CPU_WINDOWS_X86_COPY_WINDOWS_X86_HPP
|
||||||
|
|
||||||
static void pd_conjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
|
static void pd_conjoint_words(const HeapWord* from, HeapWord* to, size_t count) {
|
||||||
(void)memmove(to, from, count * HeapWordSize);
|
(void)memmove(to, from, count * HeapWordSize);
|
||||||
@ -190,4 +190,4 @@ static void pd_arrayof_conjoint_oops(const HeapWord* from, HeapWord* to, size_t
|
|||||||
pd_conjoint_oops_atomic((const oop*)from, (oop*)to, count);
|
pd_conjoint_oops_atomic((const oop*)from, (oop*)to, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // OS_CPU_WINDOWS_X86_COPY_WINDOWS_X86_INLINE_HPP
|
#endif // OS_CPU_WINDOWS_X86_COPY_WINDOWS_X86_HPP
|
Loading…
x
Reference in New Issue
Block a user