Skip to content

Commit c88e3f2

Browse files
committed
Merge branch 'master' into JDK-8262891
2 parents 73166a2 + 0f925d1 commit c88e3f2

File tree

470 files changed

+19452
-9538
lines changed

Some content is hidden

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

470 files changed

+19452
-9538
lines changed

make/conf/jib-profiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ var getJibProfiles = function (input) {
205205

206206
// Exclude list to use when Jib creates a source bundle
207207
data.src_bundle_excludes = [
208-
"build", "{,**/}webrev*", "{,**/}.hg", "{,**/}JTwork", "{,**/}JTreport",
208+
"build", "{,**/}webrev*", "{,**/}.hg", "{,**/}JTwork*", "{,**/}JTreport*",
209209
"{,**/}.git"
210210
];
211211
// Include list to use when creating a minimal jib source bundle which

make/modules/java.desktop/lib/Awt2dLibraries.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJAVAJPEG, \
339339
OPTIMIZATION := HIGHEST, \
340340
CFLAGS := $(CFLAGS_JDKLIB), \
341341
HEADERS_FROM_SRC := $(LIBJPEG_HEADERS_FROM_SRC), \
342-
DISABLED_WARNINGS_gcc := clobbered implicit-fallthrough shift-negative-value, \
342+
DISABLED_WARNINGS_gcc := clobbered implicit-fallthrough shift-negative-value array-bounds, \
343343
LDFLAGS := $(LDFLAGS_JDKLIB) \
344344
$(call SET_SHARED_LIBRARY_ORIGIN), \
345345
LIBS := $(LIBJPEG_LIBS) $(JDKLIB_LIBS), \
@@ -465,7 +465,7 @@ else
465465

466466
HARFBUZZ_DISABLED_WARNINGS_gcc := type-limits missing-field-initializers strict-aliasing
467467
HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := reorder delete-non-virtual-dtor strict-overflow \
468-
maybe-uninitialized class-memaccess
468+
maybe-uninitialized class-memaccess unused-result extra
469469
HARFBUZZ_DISABLED_WARNINGS_clang := unused-value incompatible-pointer-types \
470470
tautological-constant-out-of-range-compare int-to-pointer-cast \
471471
undef missing-field-initializers range-loop-analysis \

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,6 @@ void MachPrologNode::emit(CodeBuffer &cbuf, PhaseRegAlloc *ra_) const {
18861886

18871887
// n.b. frame size includes space for return pc and rfp
18881888
const int framesize = C->output()->frame_size_in_bytes();
1889-
assert(framesize%(2*wordSize) == 0, "must preserve 2*wordSize alignment");
18901889

18911890
// insert a nop at the start of the prolog so we can patch in a
18921891
// branch if we need to invalidate the method later
@@ -3113,32 +3112,6 @@ encode %{
31133112
as_Register($mem$$base), $mem$$index, $mem$$scale, $mem$$disp, 8);
31143113
%}
31153114

3116-
// This encoding class is generated automatically from ad_encode.m4.
3117-
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE
3118-
enc_class aarch64_enc_strw_immn(immN src, memory1 mem) %{
3119-
C2_MacroAssembler _masm(&cbuf);
3120-
address con = (address)$src$$constant;
3121-
// need to do this the hard way until we can manage relocs
3122-
// for 32 bit constants
3123-
__ movoop(rscratch2, (jobject)con);
3124-
if (con) __ encode_heap_oop_not_null(rscratch2);
3125-
loadStore(_masm, &MacroAssembler::strw, rscratch2, $mem->opcode(),
3126-
as_Register($mem$$base), $mem$$index, $mem$$scale, $mem$$disp, 4);
3127-
%}
3128-
3129-
// This encoding class is generated automatically from ad_encode.m4.
3130-
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE
3131-
enc_class aarch64_enc_strw_immnk(immN src, memory4 mem) %{
3132-
C2_MacroAssembler _masm(&cbuf);
3133-
address con = (address)$src$$constant;
3134-
// need to do this the hard way until we can manage relocs
3135-
// for 32 bit constants
3136-
__ movoop(rscratch2, (jobject)con);
3137-
__ encode_klass_not_null(rscratch2);
3138-
loadStore(_masm, &MacroAssembler::strw, rscratch2, $mem->opcode(),
3139-
as_Register($mem$$base), $mem$$index, $mem$$scale, $mem$$disp, 4);
3140-
%}
3141-
31423115
// This encoding class is generated automatically from ad_encode.m4.
31433116
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE
31443117
enc_class aarch64_enc_strb0_ordered(memory4 mem) %{

src/hotspot/cpu/aarch64/ad_encode.m4

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ define(choose, `loadStore($1, &MacroAssembler::$3, $2, $4,
2929
%}')dnl
3030
define(access, `
3131
$3Register $1_reg = as_$3Register($$1$$reg);
32-
$4choose(MacroAssembler(&cbuf), $1_reg,$2,$mem->opcode(),
32+
$4choose(C2_MacroAssembler(&cbuf), $1_reg,$2,$mem->opcode(),
3333
as_Register($mem$$base),$mem$$index,$mem$$scale,$mem$$disp,$5)')dnl
3434
define(load,`
3535
// This encoding class is generated automatically from ad_encode.m4.
@@ -59,7 +59,7 @@ define(STORE0,`
5959
// This encoding class is generated automatically from ad_encode.m4.
6060
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE
6161
enc_class aarch64_enc_$2`'0(memory$4 mem) %{
62-
MacroAssembler _masm(&cbuf);
62+
C2_MacroAssembler _masm(&cbuf);
6363
choose(_masm,zr,$2,$mem->opcode(),
6464
as_$3Register($mem$$base),$mem$$index,$mem$$scale,$mem$$disp,$4)')dnl
6565
STORE(iRegI,strb,,,1)
@@ -72,7 +72,7 @@ STORE(iRegL,str,,
7272
`// we sometimes get asked to store the stack pointer into the
7373
// current thread -- we cannot do that directly on AArch64
7474
if (src_reg == r31_sp) {
75-
MacroAssembler _masm(&cbuf);
75+
C2_MacroAssembler _masm(&cbuf);
7676
assert(as_Register($mem$$base) == rthread, "unexpected store for sp");
7777
__ mov(rscratch2, sp);
7878
src_reg = rscratch2;
@@ -82,34 +82,10 @@ STORE0(iRegL,str,,8)
8282
STORE(vRegF,strs,Float,,4)
8383
STORE(vRegD,strd,Float,,8)
8484

85-
// This encoding class is generated automatically from ad_encode.m4.
86-
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE
87-
enc_class aarch64_enc_strw_immn(immN src, memory1 mem) %{
88-
MacroAssembler _masm(&cbuf);
89-
address con = (address)$src$$constant;
90-
// need to do this the hard way until we can manage relocs
91-
// for 32 bit constants
92-
__ movoop(rscratch2, (jobject)con);
93-
if (con) __ encode_heap_oop_not_null(rscratch2);
94-
choose(_masm,rscratch2,strw,$mem->opcode(),
95-
as_Register($mem$$base),$mem$$index,$mem$$scale,$mem$$disp, 4)
96-
97-
// This encoding class is generated automatically from ad_encode.m4.
98-
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE
99-
enc_class aarch64_enc_strw_immnk(immN src, memory4 mem) %{
100-
MacroAssembler _masm(&cbuf);
101-
address con = (address)$src$$constant;
102-
// need to do this the hard way until we can manage relocs
103-
// for 32 bit constants
104-
__ movoop(rscratch2, (jobject)con);
105-
__ encode_klass_not_null(rscratch2);
106-
choose(_masm,rscratch2,strw,$mem->opcode(),
107-
as_Register($mem$$base),$mem$$index,$mem$$scale,$mem$$disp, 4)
108-
10985
// This encoding class is generated automatically from ad_encode.m4.
11086
// DO NOT EDIT ANYTHING IN THIS SECTION OF THE FILE
11187
enc_class aarch64_enc_strb0_ordered(memory4 mem) %{
112-
MacroAssembler _masm(&cbuf);
88+
C2_MacroAssembler _masm(&cbuf);
11389
__ membar(Assembler::StoreStore);
11490
loadStore(_masm, &MacroAssembler::strb, zr, $mem->opcode(),
11591
as_Register($mem$$base), $mem$$index, $mem$$scale, $mem$$disp, 1);

src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,7 @@ void LIR_Assembler::jobject2reg_with_patching(Register reg, CodeEmitInfo *info)
374374
int LIR_Assembler::initial_frame_size_in_bytes() const {
375375
// if rounding, must let FrameMap know!
376376

377-
// The frame_map records size in slots (32bit word)
378-
379-
// subtract two words to account for return address and link
380-
return (frame_map()->framesize() - (2*VMRegImpl::slots_per_word)) * VMRegImpl::stack_slot_size;
377+
return in_bytes(frame_map()->framesize_in_bytes());
381378
}
382379

383380

@@ -2247,9 +2244,6 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
22472244
Register length = op->length()->as_register();
22482245
Register tmp = op->tmp()->as_register();
22492246

2250-
__ resolve(ACCESS_READ, src);
2251-
__ resolve(ACCESS_WRITE, dst);
2252-
22532247
CodeStub* stub = op->stub();
22542248
int flags = op->flags();
22552249
BasicType basic_type = default_type != NULL ? default_type->element_type()->basic_type() : T_ILLEGAL;
@@ -2592,7 +2586,6 @@ void LIR_Assembler::emit_lock(LIR_OpLock* op) {
25922586
scratch = op->scratch_opr()->as_register();
25932587
}
25942588
assert(BasicLock::displaced_header_offset_in_bytes() == 0, "lock_reg must point to the displaced header");
2595-
__ resolve(ACCESS_READ | ACCESS_WRITE, obj);
25962589
// add debug info for NullPointerException only if one is possible
25972590
int null_check_offset = __ lock_object(hdr, obj, lock, scratch, *op->stub()->entry());
25982591
if (op->info() != NULL) {

src/hotspot/cpu/aarch64/c1_LIRGenerator_aarch64.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,6 @@ void LIRGenerator::do_update_CRC32(Intrinsic* x) {
968968
index = tmp;
969969
}
970970

971-
if (is_updateBytes) {
972-
base_op = access_resolve(ACCESS_READ, base_op);
973-
}
974-
975971
if (offset) {
976972
LIR_Opr tmp = new_pointer_register();
977973
__ add(base_op, LIR_OprFact::intConst(offset), tmp);
@@ -1050,10 +1046,6 @@ void LIRGenerator::do_update_CRC32C(Intrinsic* x) {
10501046
index = tmp;
10511047
}
10521048

1053-
if (is_updateBytes) {
1054-
base_op = access_resolve(ACCESS_READ, base_op);
1055-
}
1056-
10571049
if (offset) {
10581050
LIR_Opr tmp = new_pointer_register();
10591051
__ add(base_op, LIR_OprFact::intConst(offset), tmp);

src/hotspot/cpu/aarch64/c1_MacroAssembler_aarch64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,17 +341,17 @@ void C1_MacroAssembler::inline_cache_check(Register receiver, Register iCache) {
341341
void C1_MacroAssembler::build_frame(int framesize, int bang_size_in_bytes) {
342342
assert(bang_size_in_bytes >= framesize, "stack bang size incorrect");
343343
// Make sure there is enough stack space for this method's activation.
344-
// Note that we do this before doing an enter().
344+
// Note that we do this before creating a frame.
345345
generate_stack_overflow_check(bang_size_in_bytes);
346-
MacroAssembler::build_frame(framesize + 2 * wordSize);
346+
MacroAssembler::build_frame(framesize);
347347

348348
// Insert nmethod entry barrier into frame.
349349
BarrierSetAssembler* bs = BarrierSet::barrier_set()->barrier_set_assembler();
350350
bs->nmethod_entry_barrier(this);
351351
}
352352

353353
void C1_MacroAssembler::remove_frame(int framesize) {
354-
MacroAssembler::remove_frame(framesize + 2 * wordSize);
354+
MacroAssembler::remove_frame(framesize);
355355
}
356356

357357

src/hotspot/cpu/aarch64/gc/shared/barrierSetAssembler_aarch64.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,6 @@ void BarrierSetAssembler::store_at(MacroAssembler* masm, DecoratorSet decorators
119119
}
120120
}
121121

122-
void BarrierSetAssembler::obj_equals(MacroAssembler* masm,
123-
Register obj1, Register obj2) {
124-
__ cmp(obj1, obj2);
125-
}
126-
127122
void BarrierSetAssembler::try_resolve_jobject_in_native(MacroAssembler* masm, Register jni_env,
128123
Register obj, Register tmp, Label& slowpath) {
129124
// If mask changes we need to ensure that the inverse is still encodable as an immediate

src/hotspot/cpu/aarch64/gc/shared/barrierSetAssembler_aarch64.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ class BarrierSetAssembler: public CHeapObj<mtGC> {
4747
virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
4848
Address dst, Register val, Register tmp1, Register tmp2);
4949

50-
virtual void obj_equals(MacroAssembler* masm,
51-
Register obj1, Register obj2);
52-
53-
virtual void resolve(MacroAssembler* masm, DecoratorSet decorators, Register obj) {
54-
// Default implementation does not need to do anything.
55-
}
56-
5750
virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register jni_env,
5851
Register obj, Register tmp, Label& slowpath);
5952

src/hotspot/cpu/aarch64/gc/shenandoah/shenandoahBarrierSetAssembler_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void ShenandoahBarrierSetAssembler::load_reference_barrier(MacroAssembler* masm,
281281
} else {
282282
assert(is_phantom, "only remaining strength");
283283
assert(!is_narrow, "phantom access cannot be narrow");
284-
__ mov(lr, CAST_FROM_FN_PTR(address, ShenandoahRuntime::load_reference_barrier_weak));
284+
__ mov(lr, CAST_FROM_FN_PTR(address, ShenandoahRuntime::load_reference_barrier_phantom));
285285
}
286286
__ blr(lr);
287287
__ mov(rscratch1, r0);

0 commit comments

Comments
 (0)