Searched refs:aligned (Results 1 - 25 of 47) sorted by relevance

12

/openjdk9/hotspot/src/os/aix/vm/
H A Dmisc_aix.cpp56 int* const aligned = (int*) align_size_down((intptr_t)p, 4); local
59 return (SafeFetch32(aligned, cafebabe) != cafebabe) ||
60 (SafeFetch32(aligned, deadbeef) != deadbeef);
/openjdk9/hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/utils/
H A DNativeOrderOutputStream.java49 int aligned = (value + (alignment - 1)) & -alignment;
51 if (aligned < value || (aligned & (alignment - 1)) != 0) {
52 throw new RuntimeException("Error aligning: " + value + " -> " + aligned);
54 return aligned;
72 int aligned = alignUp(position(), alignment);
74 int diff = aligned - position();
81 assert aligned == position();
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/arraycopy/
H A DArrayCopyCallNode.java83 * Aligned means that the offset of the copy is heap word aligned.
85 protected boolean aligned; field in class:ArrayCopyCallNode
92 boolean aligned, boolean disjoint, boolean uninitialized) {
93 this(runtime, src, srcPos, dest, destPos, length, elementKind, null, aligned, disjoint, uninitialized);
102 LocationIdentity locationIdentity, boolean aligned, boolean disjoint, boolean uninitialized) {
112 this.aligned = aligned;
189 private static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length, @ConstantNodeParameter JavaKind elementKind, @ConstantNodeParameter boolean aligned, argument
194 @ConstantNodeParameter LocationIdentity locationIdentity, @ConstantNodeParameter boolean aligned, @ConstantNodeParameter boolean disjoint,
214 return aligned;
91 ArrayCopyCallNode(@njectedNodeParameter HotSpotGraalRuntimeProvider runtime, ValueNode src, ValueNode srcPos, ValueNode dest, ValueNode destPos, ValueNode length, JavaKind elementKind, boolean aligned, boolean disjoint, boolean uninitialized) argument
101 ArrayCopyCallNode(@njectedNodeParameter HotSpotGraalRuntimeProvider runtime, ValueNode src, ValueNode srcPos, ValueNode dest, ValueNode destPos, ValueNode length, JavaKind elementKind, LocationIdentity locationIdentity, boolean aligned, boolean disjoint, boolean uninitialized) argument
193 arraycopy(Object src, int srcPos, Object dest, int destPos, int length, @ConstantNodeParameter JavaKind elementKind, @ConstantNodeParameter LocationIdentity locationIdentity, @ConstantNodeParameter boolean aligned, @ConstantNodeParameter boolean disjoint, @ConstantNodeParameter boolean uninitialized) argument
[all...]
/openjdk9/hotspot/test/native/utilities/
H A Dtest_bitMap_setops.cpp139 BitMapView aligned = BitMapView(mx.memory(), aligned_size); local
143 WithBitClear wbc(aligned, index);
192 BitMapView aligned = BitMapView(mx.memory(), aligned_size); local
194 WithBitClear wcb(aligned, index);
195 EXPECT_FALSE(aligned.is_full());
215 BitMapView aligned = BitMapView(mx.memory(), aligned_size); local
217 WithBitSet wbs(aligned, index);
218 EXPECT_FALSE(aligned.is_empty());
253 BitMapView aligned = BitMapView(mx.memory(), aligned_size); local
257 WithBitClear wbc(aligned, inde
[all...]
/openjdk9/jdk/src/jdk.sctp/unix/native/libsctp/
H A DSctp.h257 } __attribute__((packed, aligned(4)));
279 } __attribute__((packed, aligned(4)));
284 } __attribute__((packed, aligned(4)));
/openjdk9/hotspot/src/os_cpu/bsd_x86/vm/
H A Dbsd_x86_32.s115 # copy aligned dwords
118 # copy aligned dwords
153 # copy dwords, aligned or not
163 # copy dwords, aligned or not
208 # copy aligned dwords
218 # copy aligned dwords
305 # copy aligned dwords
308 # copy aligned dwords
380 # copy aligned dwords
383 # copy aligned dword
[all...]
H A Dbsd_x86_64.s158 # If 'from' and/or 'to' are aligned on 4- or 2-byte boundaries, we
249 # If 'from' and/or 'to' are aligned on 4-byte boundaries, we let
/openjdk9/hotspot/src/os_cpu/solaris_x86/vm/
H A Dsolaris_x86_32.s130 / copy aligned dwords
133 / copy aligned dwords
168 / copy dwords, aligned or not
178 / copy dwords, aligned or not
222 / copy aligned dwords
232 / copy aligned dwords
318 / copy aligned dwords
321 / copy aligned dwords
392 / copy aligned dwords
395 / copy aligned dword
[all...]
H A Dsolaris_x86_64.s162 / If 'from' and/or 'to' are aligned on 4- or 2-byte boundaries, we
251 / If 'from' and/or 'to' are aligned on 4-byte boundaries, we let
/openjdk9/hotspot/src/os_cpu/linux_x86/vm/
H A Dlinux_x86_32.s94 # copy aligned dwords
97 # copy aligned dwords
132 # copy dwords, aligned or not
142 # copy dwords, aligned or not
187 # copy aligned dwords
197 # copy aligned dwords
284 # copy aligned dwords
287 # copy aligned dwords
359 # copy aligned dwords
362 # copy aligned dword
[all...]
H A Dlinux_x86_64.s150 # If 'from' and/or 'to' are aligned on 4- or 2-byte boundaries, we
241 # If 'from' and/or 'to' are aligned on 4-byte boundaries, we let
/openjdk9/hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/
H A DBinaryContainer.java764 int aligned = (offset + (alignment - 1)) & -alignment;
765 if (aligned < offset || (aligned & (alignment - 1)) != 0) {
766 throw new RuntimeException("Error aligning: " + offset + " -> " + aligned);
768 if (aligned != offset) {
769 int nullArraySz = aligned - offset;
772 offset = aligned;
778 assert (start % codeSegmentSize) == 0 : "not aligned code";
/openjdk9/hotspot/src/cpu/s390/vm/
H A DstubGenerator_s390.cpp919 // Generate stub for disjoint array copy. If "aligned" is true, the
920 // "from" and "to" addresses are assumed to be heapword aligned.
926 void generate_disjoint_copy(bool aligned, int element_size, argument
1029 if (element_size == 8) { // Long and oop arrays are always aligned.
1057 // DW aligned: Best performance for sizes > 4kBytes.
1092 // MVCUnrolled: for short, aligned arrays.
1182 // Only for DW aligned arrays (src and dst).
1184 // Non-aligned cases handled separately.
1326 // Generate stub for conjoint array copy. If "aligned" is true, the
1327 // "from" and "to" addresses are assumed to be heapword aligned
1333 generate_conjoint_copy(bool aligned, int element_size, bool branchToEnd) argument
1449 generate_disjoint_byte_copy(bool aligned, const char * name) argument
1460 generate_disjoint_short_copy(bool aligned, const char * name) argument
1470 generate_disjoint_int_copy(bool aligned, const char * name) argument
1480 generate_disjoint_long_copy(bool aligned, const char * name) argument
1490 generate_disjoint_oop_copy(bool aligned, const char * name, bool dest_uninitialized) argument
1507 generate_conjoint_byte_copy(bool aligned, const char * name) argument
1522 generate_conjoint_short_copy(bool aligned, const char * name) argument
1536 generate_conjoint_int_copy(bool aligned, const char * name) argument
1551 generate_conjoint_long_copy(bool aligned, const char * name) argument
1566 generate_conjoint_oop_copy(bool aligned, const char * name, bool dest_uninitialized) argument
[all...]
/openjdk9/hotspot/src/share/vm/runtime/
H A DstubRoutines.cpp220 // do an aligned copy
315 for (int aligned = 0; aligned < 2; aligned++) { \
316 if (aligned) { \
490 address StubRoutines::select_fill_function(BasicType t, bool aligned, const char* &name) { argument
498 if (!aligned) RETURN_STUB(jbyte_fill);
502 if (!aligned) RETURN_STUB(jshort_fill);
506 if (!aligned) RETURN_STUB(jint_fill);
529 COPYFUNC_ALIGNED = 1, // src, dest aligned t
537 select_arraycopy_function(BasicType t, bool aligned, bool disjoint, const char* &name, bool dest_uninitialized) argument
[all...]
H A DstubRoutines.hpp129 // arraycopy operands aligned on element type boundary
141 // arraycopy operands aligned on zero'th element boundary
142 // These are identical to the ones aligned aligned on an
144 // source and destination are HeapWord aligned.
168 // zero heap space aligned to jlong (8 bytes)
302 static address select_arraycopy_function(BasicType t, bool aligned, bool disjoint, const char* &name, bool dest_uninitialized);
388 static address select_fill_function(BasicType t, bool aligned, const char* &name);
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/meta/
H A DHotSpotHostForeignCallsProvider.java158 public static ForeignCallDescriptor lookupArraycopyDescriptor(JavaKind kind, boolean aligned, boolean disjoint, boolean uninit, boolean killAny) { argument
162 return uninitObjectArraycopyDescriptors[aligned ? 1 : 0][disjoint ? 1 : 0];
166 return objectArraycopyDescriptorsKillAny[aligned ? 1 : 0][disjoint ? 1 : 0];
168 return arraycopyDescriptors[aligned ? 1 : 0][disjoint ? 1 : 0].get(kind);
186 private void registerArraycopyDescriptor(Map<Long, ForeignCallDescriptor> descMap, JavaKind kind, boolean aligned, boolean disjoint, boolean uninit, boolean killAny, long routine) { argument
189 desc = buildDescriptor(kind, aligned, disjoint, uninit, killAny, routine);
194 uninitObjectArraycopyDescriptors[aligned ? 1 : 0][disjoint ? 1 : 0] = desc;
196 arraycopyDescriptors[aligned ? 1 : 0][disjoint ? 1 : 0].put(kind, desc);
200 private ForeignCallDescriptor buildDescriptor(JavaKind kind, boolean aligned, boolean disjoint, boolean uninit, boolean killAny, long routine) { argument
202 String name = kind + (aligned
[all...]
/openjdk9/hotspot/src/cpu/ppc/vm/
H A DstubGenerator_ppc.cpp756 Register base_ptr_reg = R3_ARG1; // tohw (needs to be 8b aligned)
784 __ beq(CCR0, fast); // already 128byte aligned
788 // Clear in first cache line dword-by-dword if not already 128byte aligned.
790 __ std(zero_reg, 0, base_ptr_reg); // Clear 8byte aligned block.
804 __ dcbz(base_ptr_reg); // Clear 128byte aligned block.
814 __ std(zero_reg, 0, base_ptr_reg); // Clear 8byte aligned block.
815 __ std(zero_reg, 8, base_ptr_reg); // Clear 8byte aligned block.
876 // Generate stub for disjoint short fill. If "aligned" is true, the
877 // "to" address is assumed to be heapword aligned.
884 address generate_fill(BasicType t, bool aligned, cons argument
1116 generate_disjoint_byte_copy(bool aligned, const char * name) argument
1291 generate_conjoint_byte_copy(bool aligned, const char * name) argument
1378 generate_disjoint_short_copy(bool aligned, const char * name) argument
1557 generate_conjoint_short_copy(bool aligned, const char * name) argument
1596 generate_disjoint_int_copy_core(bool aligned) argument
1725 generate_disjoint_int_copy(bool aligned, const char * name) argument
1744 generate_conjoint_int_copy_core(bool aligned) argument
1868 generate_conjoint_int_copy(bool aligned, const char * name) argument
1895 generate_disjoint_long_copy_core(bool aligned) argument
1996 generate_disjoint_long_copy(bool aligned, const char * name) argument
2016 generate_conjoint_long_copy_core(bool aligned) argument
2118 generate_conjoint_long_copy(bool aligned, const char * name) argument
2144 generate_conjoint_oop_copy(bool aligned, const char * name, bool dest_uninitialized) argument
2182 generate_disjoint_oop_copy(bool aligned, const char * name, bool dest_uninitialized) argument
[all...]
/openjdk9/hotspot/src/os_cpu/linux_arm/vm/
H A Dlinux_arm_64.s95 # x16 is count of bytes to copy aligned down by 16.
111 # x16 is aligned by 16 and less than 128
206 # x3 is count aligned down by 2*wordSize
421 # x16 is count of bytes to copy aligned down by 8.
437 # x16 is aligned by 8 and less than 64
520 # x3 is count aligned down by 2*jintSize
H A Dlinux_arm_32.s250 # Destination not aligned
257 # Check to see if source is not aligned ether
265 # Load 2 first bytes to r7 and make src ptr word aligned
269 # Destination aligned, source not
365 # Destination not aligned
374 # Source not aligned
/openjdk9/hotspot/src/cpu/aarch64/vm/
H A DstubGenerator_aarch64.cpp733 // Base must be 16 byte aligned. If not just return and let caller handle it
917 // source address is even aligned, target odd aligned
1300 Label aligned;
1303 // We may have to adjust by 1 word to get s 2-word-aligned.
1304 __ tbz(s, exact_log2(wordSize), aligned);
1316 __ cbz(rscratch2, aligned);
1325 // Copy the first pair; s and d may not be aligned.
1342 __ bind(aligned);
1344 // s is now 2-word-aligned
[all...]
H A DstubRoutines_aarch64.cpp52 __attribute__ ((aligned(4096))) =
/openjdk9/hotspot/src/cpu/sparc/vm/
H A DstubGenerator_sparc.cpp751 __ add(SP,-4*wordSize,SP); // Make space for 4 temps (stack must be 2 words aligned)
1103 // to - destination array aligned to 8-bytes
1114 // if both arrays have the same alignment mod 8, do 8 bytes aligned copy
1127 // Load 2 aligned 8-bytes chunks and use one from previous iteration
1128 // to form 2 aligned 8-bytes chunks to store.
1162 // end_to - destination array end address aligned to 8-bytes
1165 // L_aligned_copy - aligned copy exit label
1173 // if both arrays have the same alignment mod 8, do 8 bytes aligned copy
1186 // Load 2 aligned 8-bytes chunks and use one from previous iteration
1187 // to form 2 aligned
1237 generate_disjoint_byte_copy(bool aligned, address *entry, const char *name) argument
1346 generate_conjoint_byte_copy(bool aligned, address nooverlap_target, address *entry, const char *name) argument
1458 generate_disjoint_short_copy(bool aligned, address *entry, const char * name) argument
1574 generate_fill(BasicType t, bool aligned, const char* name) argument
1797 generate_conjoint_short_copy(bool aligned, address nooverlap_target, address *entry, const char *name) argument
1959 generate_disjoint_int_copy_core(bool aligned) argument
2050 generate_disjoint_int_copy(bool aligned, address *entry, const char *name) argument
2083 generate_conjoint_int_copy_core(bool aligned) argument
2183 generate_conjoint_int_copy(bool aligned, address nooverlap_target, address *entry, const char *name) argument
2271 generate_disjoint_long_copy_core(bool aligned) argument
2336 generate_disjoint_long_copy(bool aligned, address *entry, const char *name) argument
2368 generate_conjoint_long_copy_core(bool aligned) argument
2408 generate_conjoint_long_copy(bool aligned, address nooverlap_target, address *entry, const char *name) argument
2443 generate_disjoint_oop_copy(bool aligned, address *entry, const char *name, bool dest_uninitialized = false) argument
2494 generate_conjoint_oop_copy(bool aligned, address nooverlap_target, address *entry, const char *name, bool dest_uninitialized = false) argument
[all...]
/openjdk9/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/
H A DHotSpotMemoryAccessProviderImpl.java98 boolean aligned = ((displacement - headerSize) % sizeOfElement) == 0;
99 if (displacement < 0 || displacement > (arrayEnd - sizeOfElement) || (kind == JavaKind.Object && !aligned)) {
/openjdk9/hotspot/src/cpu/x86/vm/
H A DstubRoutines_x86.cpp35 #define ALIGNED_(x) __attribute__ ((aligned(x)))
87 * but the highest term is always aligned to bit 0 in the container.
95 * aligned to the high-term end of the target 128-bit container,
/openjdk9/hotspot/src/share/vm/opto/
H A DmacroArrayCopy.cpp213 bool aligned = false; local
227 aligned = ((arrayOopDesc::base_offset_in_bytes(t) + s_offs * element_size) % HeapWordSize == 0) &&
235 return StubRoutines::select_arraycopy_function(t, aligned, disjoint, name, dest_uninitialized);
832 assert((abase & to_clear) == 0, "array base must be long-aligned");
836 assert((abase & clear_low) == 0, "array base must be int-aligned");
887 // Non-aligned; too bad.

Completed in 309 milliseconds

12