Skip to content

Commit baedf83

Browse files
authored
Merge pull request #5 from openjdk/master
Merge
2 parents 997629f + 23180f8 commit baedf83

File tree

150 files changed

+2280
-1431
lines changed

Some content is hidden

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

150 files changed

+2280
-1431
lines changed

make/jdk/src/classes/build/tools/generatecharacter/GenerateCharacter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static long buildOne(int c, UnicodeSpec us, SpecialCaseMap[] specialMaps) {
409409

410410
// extract and record the uppercase letter / lowercase letter property into the
411411
// maskOtherUppercase/-Lowercase bit so that Character.isLower|UpperCase
412-
// can use a one-step lookup (this property includes
412+
// can use a one-step lookup
413413
if (resultA == Character.UPPERCASE_LETTER) {
414414
resultA |= maskOtherUppercase;
415415
} else if (resultA == Character.LOWERCASE_LETTER) {
@@ -1897,7 +1897,6 @@ public static void main(String[] args) {
18971897
hex8(maxOffset));
18981898
}
18991899
}
1900-
catch (FileNotFoundException e) { FAIL(e.toString()); }
19011900
catch (IOException e) { FAIL(e.toString()); }
19021901
catch (Throwable e) {
19031902
System.out.println("Unexpected exception:");

src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, 2020, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -474,7 +474,7 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
474474

475475
if (needs_thread_local_poll) {
476476
NOT_PRODUCT(block_comment("Thread-local Safepoint poll"));
477-
ldr(rscratch2, Address(rthread, Thread::polling_word_offset()));
477+
ldr(rscratch2, Address(rthread, JavaThread::polling_word_offset()));
478478
tbnz(rscratch2, exact_log2(SafepointMechanism::poll_bit()), safepoint);
479479
}
480480

src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,10 @@ address MacroAssembler::target_addr_for_insn(address insn_addr, unsigned insn) {
294294

295295
void MacroAssembler::safepoint_poll(Label& slow_path, bool at_return, bool acquire, bool in_nmethod) {
296296
if (acquire) {
297-
lea(rscratch1, Address(rthread, Thread::polling_word_offset()));
297+
lea(rscratch1, Address(rthread, JavaThread::polling_word_offset()));
298298
ldar(rscratch1, rscratch1);
299299
} else {
300-
ldr(rscratch1, Address(rthread, Thread::polling_word_offset()));
300+
ldr(rscratch1, Address(rthread, JavaThread::polling_word_offset()));
301301
}
302302
if (at_return) {
303303
// Note that when in_nmethod is set, the stack pointer is incremented before the poll. Therefore,
@@ -4393,7 +4393,7 @@ void MacroAssembler::bang_stack_size(Register size, Register tmp) {
43934393

43944394
// Move the address of the polling page into dest.
43954395
void MacroAssembler::get_polling_page(Register dest, relocInfo::relocType rtype) {
4396-
ldr(dest, Address(rthread, Thread::polling_page_offset()));
4396+
ldr(dest, Address(rthread, JavaThread::polling_page_offset()));
43974397
}
43984398

43994399
// Read the polling page. The address of the polling page must

src/hotspot/cpu/arm/interp_masm_arm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -580,7 +580,7 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
580580

581581
if (needs_thread_local_poll) {
582582
NOT_PRODUCT(block_comment("Thread-local Safepoint poll"));
583-
ldr(Rtemp, Address(Rthread, Thread::polling_word_offset()));
583+
ldr(Rtemp, Address(Rthread, JavaThread::polling_word_offset()));
584584
tbnz(Rtemp, exact_log2(SafepointMechanism::poll_bit()), safepoint);
585585
}
586586

src/hotspot/cpu/arm/macroAssembler_arm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,13 +1898,13 @@ void MacroAssembler::resolve(DecoratorSet decorators, Register obj) {
18981898
}
18991899

19001900
void MacroAssembler::safepoint_poll(Register tmp1, Label& slow_path) {
1901-
ldr_u32(tmp1, Address(Rthread, Thread::polling_word_offset()));
1901+
ldr_u32(tmp1, Address(Rthread, JavaThread::polling_word_offset()));
19021902
tst(tmp1, exact_log2(SafepointMechanism::poll_bit()));
19031903
b(slow_path, eq);
19041904
}
19051905

19061906
void MacroAssembler::get_polling_page(Register dest) {
1907-
ldr(dest, Address(Rthread, Thread::polling_page_offset()));
1907+
ldr(dest, Address(Rthread, JavaThread::polling_page_offset()));
19081908
}
19091909

19101910
void MacroAssembler::read_polling_page(Register dest, relocInfo::relocType rtype) {

src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ void LIR_Assembler::return_op(LIR_Opr result, C1SafepointPollStub* code_stub) {
13551355

13561356
int LIR_Assembler::safepoint_poll(LIR_Opr tmp, CodeEmitInfo* info) {
13571357
const Register poll_addr = tmp->as_register();
1358-
__ ld(poll_addr, in_bytes(Thread::polling_page_offset()), R16_thread);
1358+
__ ld(poll_addr, in_bytes(JavaThread::polling_page_offset()), R16_thread);
13591359
if (info != NULL) {
13601360
add_debug_info_for_branch(info);
13611361
}

src/hotspot/cpu/ppc/interp_masm_ppc_64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void InterpreterMacroAssembler::dispatch_Lbyte_code(TosState state, Register byt
225225
address *sfpt_tbl = Interpreter::safept_table(state);
226226
if (table != sfpt_tbl) {
227227
Label dispatch;
228-
ld(R0, in_bytes(Thread::polling_word_offset()), R16_thread);
228+
ld(R0, in_bytes(JavaThread::polling_word_offset()), R16_thread);
229229
// Armed page has poll_bit set, if poll bit is cleared just continue.
230230
andi_(R0, R0, SafepointMechanism::poll_bit());
231231
beq(CCR0, dispatch);

src/hotspot/cpu/ppc/macroAssembler_ppc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3058,7 +3058,7 @@ void MacroAssembler::compiler_fast_unlock_object(ConditionRegister flag, Registe
30583058
}
30593059

30603060
void MacroAssembler::safepoint_poll(Label& slow_path, Register temp, bool at_return, bool in_nmethod) {
3061-
ld(temp, in_bytes(Thread::polling_word_offset()), R16_thread);
3061+
ld(temp, in_bytes(JavaThread::polling_word_offset()), R16_thread);
30623062

30633063
if (at_return) {
30643064
if (in_nmethod) {

src/hotspot/cpu/ppc/templateTable_ppc_64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,7 +2142,7 @@ void TemplateTable::_return(TosState state) {
21422142

21432143
if (_desc->bytecode() != Bytecodes::_return_register_finalizer) {
21442144
Label no_safepoint;
2145-
__ ld(R11_scratch1, in_bytes(Thread::polling_word_offset()), R16_thread);
2145+
__ ld(R11_scratch1, in_bytes(JavaThread::polling_word_offset()), R16_thread);
21462146
__ andi_(R11_scratch1, R11_scratch1, SafepointMechanism::poll_bit());
21472147
__ beq(CCR0, no_safepoint);
21482148
__ push(state);

src/hotspot/cpu/s390/c1_LIRAssembler_s390.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ void LIR_Assembler::return_op(LIR_Opr result, C1SafepointPollStub* code_stub) {
12091209
(result->is_single_fpu() && result->as_float_reg() == Z_F0) ||
12101210
(result->is_double_fpu() && result->as_double_reg() == Z_F0), "convention");
12111211

1212-
__ z_lg(Z_R1_scratch, Address(Z_thread, Thread::polling_page_offset()));
1212+
__ z_lg(Z_R1_scratch, Address(Z_thread, JavaThread::polling_page_offset()));
12131213

12141214
// Pop the frame before the safepoint code.
12151215
__ pop_frame_restore_retPC(initial_frame_size_in_bytes());
@@ -1228,7 +1228,7 @@ void LIR_Assembler::return_op(LIR_Opr result, C1SafepointPollStub* code_stub) {
12281228

12291229
int LIR_Assembler::safepoint_poll(LIR_Opr tmp, CodeEmitInfo* info) {
12301230
const Register poll_addr = tmp->as_register_lo();
1231-
__ z_lg(poll_addr, Address(Z_thread, Thread::polling_page_offset()));
1231+
__ z_lg(poll_addr, Address(Z_thread, JavaThread::polling_page_offset()));
12321232
guarantee(info != NULL, "Shouldn't be NULL");
12331233
add_debug_info_for_branch(info);
12341234
int offset = __ offset();

0 commit comments

Comments
 (0)