Skip to content

Commit 3e92c9b

Browse files
author
Datadog Syncup Service
committed
Merge branch 'upstream-master'
2 parents e65fddd + 45c914c commit 3e92c9b

File tree

241 files changed

+3208
-922
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+3208
-922
lines changed

src/hotspot/cpu/aarch64/c1_LIRGenerator_aarch64.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,13 +777,11 @@ void LIRGenerator::do_MathIntrinsic(Intrinsic* x) {
777777
}
778778
case vmIntrinsics::_floatToFloat16: {
779779
LIR_Opr tmp = new_register(T_FLOAT);
780-
__ move(LIR_OprFact::floatConst(-0.0), tmp);
781780
__ f2hf(src, dst, tmp);
782781
break;
783782
}
784783
case vmIntrinsics::_float16ToFloat: {
785784
LIR_Opr tmp = new_register(T_FLOAT);
786-
__ move(LIR_OprFact::floatConst(-0.0), tmp);
787785
__ hf2f(src, dst, tmp);
788786
break;
789787
}

src/hotspot/cpu/ppc/c1_LIRGenerator_ppc.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,6 @@ void LIRGenerator::do_MathIntrinsic(Intrinsic* x) {
696696
value.load_item();
697697
LIR_Opr dst = rlock_result(x);
698698
LIR_Opr tmp = new_register(T_FLOAT);
699-
// f2hf treats tmp as live_in. Workaround: initialize to some value.
700-
__ move(LIR_OprFact::floatConst(-0.0), tmp); // just to satisfy LinearScan
701699
__ f2hf(value.result(), dst, tmp);
702700
break;
703701
}

src/hotspot/cpu/riscv/vm_version_riscv.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ void VM_Version::common_initialize() {
154154
unaligned_access.value() != MISALIGNED_FAST);
155155
}
156156

157-
if (FLAG_IS_DEFAULT(AlignVector)) {
158-
FLAG_SET_DEFAULT(AlignVector, AvoidUnalignedAccesses);
159-
}
160-
161157
// See JDK-8026049
162158
// This machine has fast unaligned memory accesses
163159
if (FLAG_IS_DEFAULT(UseUnalignedAccesses)) {
@@ -448,6 +444,10 @@ void VM_Version::c2_initialize() {
448444
warning("AES/CTR intrinsics are not available on this CPU");
449445
FLAG_SET_DEFAULT(UseAESCTRIntrinsics, false);
450446
}
447+
448+
if (FLAG_IS_DEFAULT(AlignVector)) {
449+
FLAG_SET_DEFAULT(AlignVector, AvoidUnalignedAccesses);
450+
}
451451
}
452452

453453
#endif // COMPILER2

src/hotspot/cpu/s390/assembler_s390.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ class RelAddr {
122122
return is_in_range_of_RelAddr(target, pc, true);
123123
}
124124
static bool is_in_range_of_RelAddr16(ptrdiff_t distance) {
125-
return is_in_range_of_RelAddr((address)distance, 0, true);
125+
return is_in_range_of_RelAddr((address)distance, nullptr, true);
126126
}
127127

128128
static bool is_in_range_of_RelAddr32(address target, address pc) {
129129
return is_in_range_of_RelAddr(target, pc, false);
130130
}
131131
static bool is_in_range_of_RelAddr32(ptrdiff_t distance) {
132-
return is_in_range_of_RelAddr((address)distance, 0, false);
132+
return is_in_range_of_RelAddr((address)distance, nullptr, false);
133133
}
134134

135135
static int pcrel_off(address target, address pc, bool shortForm) {
@@ -149,14 +149,14 @@ class RelAddr {
149149
return pcrel_off(target, pc, true);
150150
}
151151
static int pcrel_off16(ptrdiff_t distance) {
152-
return pcrel_off((address)distance, 0, true);
152+
return pcrel_off((address)distance, nullptr, true);
153153
}
154154

155155
static int pcrel_off32(address target, address pc) {
156156
return pcrel_off(target, pc, false);
157157
}
158158
static int pcrel_off32(ptrdiff_t distance) {
159-
return pcrel_off((address)distance, 0, false);
159+
return pcrel_off((address)distance, nullptr, false);
160160
}
161161

162162
static ptrdiff_t inv_pcrel_off16(int offset) {

src/hotspot/cpu/s390/frame_s390.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void frame::patch_pc(Thread* thread, address pc) {
265265
p2i(&((address*) _sp)[-1]), p2i(((address*) _sp)[-1]), p2i(pc));
266266
}
267267
assert(!Continuation::is_return_barrier_entry(*pc_addr), "return barrier");
268-
assert(_pc == *pc_addr || pc == *pc_addr || 0 == *pc_addr,
268+
assert(_pc == *pc_addr || pc == *pc_addr || nullptr == *pc_addr,
269269
"must be (pc: " INTPTR_FORMAT " _pc: " INTPTR_FORMAT " pc_addr: " INTPTR_FORMAT
270270
" *pc_addr: " INTPTR_FORMAT " sp: " INTPTR_FORMAT ")",
271271
p2i(pc), p2i(_pc), p2i(pc_addr), p2i(*pc_addr), p2i(sp()));
@@ -296,10 +296,10 @@ void frame::patch_pc(Thread* thread, address pc) {
296296
bool frame::is_interpreted_frame_valid(JavaThread* thread) const {
297297
assert(is_interpreted_frame(), "Not an interpreted frame");
298298
// These are reasonable sanity checks
299-
if (fp() == 0 || (intptr_t(fp()) & (wordSize-1)) != 0) {
299+
if (fp() == nullptr || (intptr_t(fp()) & (wordSize-1)) != 0) {
300300
return false;
301301
}
302-
if (sp() == 0 || (intptr_t(sp()) & (wordSize-1)) != 0) {
302+
if (sp() == nullptr || (intptr_t(sp()) & (wordSize-1)) != 0) {
303303
return false;
304304
}
305305
int min_frame_slots = (z_common_abi_size + z_ijava_state_size) / sizeof(intptr_t);
@@ -420,7 +420,7 @@ void frame::back_trace(outputStream* st, intptr_t* start_sp, intptr_t* top_pc, u
420420
? (address) top_pc
421421
: (address) *((intptr_t*)(((address) current_sp) + _z_abi(return_pc)));
422422

423-
if ((intptr_t*) current_fp != 0 && (intptr_t*) current_fp <= current_sp) {
423+
if ((intptr_t*) current_fp != nullptr && (intptr_t*) current_fp <= current_sp) {
424424
st->print_cr("ERROR: corrupt stack");
425425
return;
426426
}
@@ -503,7 +503,7 @@ void frame::back_trace(outputStream* st, intptr_t* start_sp, intptr_t* top_pc, u
503503
case 0: // C frame:
504504
{
505505
st->print(" ");
506-
if (current_pc == 0) {
506+
if (current_pc == nullptr) {
507507
st->print("? ");
508508
} else {
509509
// name

src/hotspot/cpu/s390/macroAssembler_s390.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4108,7 +4108,7 @@ void MacroAssembler::encode_klass_not_null(Register dst, Register src) {
41084108
Register current = (src != noreg) ? src : dst; // Klass is in dst if no src provided. (dst == src) also possible.
41094109
address base = CompressedKlassPointers::base();
41104110
int shift = CompressedKlassPointers::shift();
4111-
bool need_zero_extend = base != 0;
4111+
bool need_zero_extend = base != nullptr;
41124112
assert(UseCompressedClassPointers, "only for compressed klass ptrs");
41134113

41144114
BLOCK_COMMENT("cKlass encoder {");

src/hotspot/cpu/s390/nativeInst_s390.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void NativeInstruction::verify() {
5959
// - any address in first page (0x0000 .. 0x0fff)
6060
// - odd address (will cause a "specification exception")
6161
address addr = addr_at(0);
62-
if ((addr == 0) || (((unsigned long)addr & ~0x0fff) == 0) || ((intptr_t)addr & 1) != 0) {
62+
if ((addr == nullptr) || (((unsigned long)addr & ~0x0fff) == 0) || ((intptr_t)addr & 1) != 0) {
6363
tty->print_cr(INTPTR_FORMAT ": bad instruction address", p2i(addr));
6464
fatal("not an instruction address");
6565
}

src/hotspot/cpu/s390/relocInfo_s390.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ void Relocation::pd_set_call_destination(address x) {
164164

165165
address* Relocation::pd_address_in_code() {
166166
ShouldNotReachHere();
167-
return 0;
168167
}
169168

170169
address Relocation::pd_get_address_from_code() {

src/hotspot/cpu/s390/stubGenerator_s390.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ class StubGenerator: public StubCodeGenerator {
688688
// code (code_size == 0) confuses opjitconv
689689
// StubCodeMark mark(this, "StubRoutines", "verify_oop_stub");
690690

691-
address start = 0;
691+
address start = nullptr;
692692

693693
#if !defined(PRODUCT)
694694
start = CAST_FROM_FN_PTR(address, verify_oop_helper);

src/hotspot/cpu/x86/c1_LIRGenerator_x86.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,9 @@ void LIRGenerator::do_NegateOp(NegateOp* x) {
349349
if (UseAVX > 2 && !VM_Version::supports_avx512vl()) {
350350
if (x->type()->tag() == doubleTag) {
351351
tmp = new_register(T_DOUBLE);
352-
__ move(LIR_OprFact::doubleConst(-0.0), tmp);
353352
}
354353
else if (x->type()->tag() == floatTag) {
355354
tmp = new_register(T_FLOAT);
356-
__ move(LIR_OprFact::floatConst(-0.0), tmp);
357355
}
358356
}
359357
#endif
@@ -834,12 +832,10 @@ void LIRGenerator::do_MathIntrinsic(Intrinsic* x) {
834832
if (UseAVX > 2 && (!VM_Version::supports_avx512vl()) &&
835833
(x->id() == vmIntrinsics::_dabs)) {
836834
tmp = new_register(T_DOUBLE);
837-
__ move(LIR_OprFact::doubleConst(-0.0), tmp);
838835
}
839836
#endif
840837
if (x->id() == vmIntrinsics::_floatToFloat16) {
841838
tmp = new_register(T_FLOAT);
842-
__ move(LIR_OprFact::floatConst(-0.0), tmp);
843839
}
844840

845841
switch(x->id()) {

0 commit comments

Comments
 (0)