Skip to content

Commit 47184fc

Browse files
Merge branch 'master' into JDK-8333664
2 parents 9c7f4a7 + 0f82268 commit 47184fc

File tree

267 files changed

+6787
-5275
lines changed

Some content is hidden

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

267 files changed

+6787
-5275
lines changed

src/hotspot/cpu/aarch64/frame_aarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,11 +507,11 @@ frame frame::sender_for_interpreter_frame(RegisterMap* map) const {
507507
intptr_t* unextended_sp = interpreter_frame_sender_sp();
508508
intptr_t* sender_fp = link();
509509

510-
#if COMPILER2_OR_JVMCI
510+
#if defined(COMPILER1) || COMPILER2_OR_JVMCI
511511
if (map->update_map()) {
512512
update_map_with_saved_link(map, (intptr_t**) addr_at(link_offset));
513513
}
514-
#endif // COMPILER2_OR_JVMCI
514+
#endif // defined(COMPILER1) || COMPILER1_OR_COMPILER2
515515

516516
// For ROP protection, Interpreter will have signed the sender_pc,
517517
// but there is no requirement to authenticate it here.

src/hotspot/cpu/aarch64/vm_version_aarch64.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ void VM_Version::initialize() {
161161
(_model == CPU_MODEL_AMPERE_1A || _model == CPU_MODEL_AMPERE_1B)) {
162162
FLAG_SET_DEFAULT(CodeEntryAlignment, 32);
163163
}
164+
if (FLAG_IS_DEFAULT(UseSignumIntrinsic)) {
165+
FLAG_SET_DEFAULT(UseSignumIntrinsic, true);
166+
}
164167
}
165168

166169
// ThunderX

src/hotspot/cpu/ppc/stubGenerator_ppc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4889,12 +4889,14 @@ void generate_lookup_secondary_supers_table_stub() {
48894889
// arraycopy stubs used by compilers
48904890
generate_arraycopy_stubs();
48914891

4892+
#ifdef COMPILER2
48924893
if (UseSecondarySupersTable) {
48934894
StubRoutines::_lookup_secondary_supers_table_slow_path_stub = generate_lookup_secondary_supers_table_slow_path_stub();
48944895
if (!InlineSecondarySupersTest) {
48954896
generate_lookup_secondary_supers_table_stub();
48964897
}
48974898
}
4899+
#endif // COMPILER2
48984900

48994901
StubRoutines::_upcall_stub_exception_handler = generate_upcall_stub_exception_handler();
49004902
StubRoutines::_upcall_stub_load_target = generate_upcall_stub_load_target();

src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,8 @@ void C2_MacroAssembler::enc_cmove(int cmpFlag, Register op1, Register op2, Regis
21352135
// Set dst to NaN if any NaN input.
21362136
void C2_MacroAssembler::minmax_fp(FloatRegister dst, FloatRegister src1, FloatRegister src2,
21372137
bool is_double, bool is_min) {
2138-
assert_different_registers(dst, src1, src2);
2138+
assert_different_registers(dst, src1);
2139+
assert_different_registers(dst, src2);
21392140

21402141
Label Done, Compare;
21412142

src/hotspot/cpu/x86/vm_version_x86.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,8 @@ void VM_Version::get_processor_features() {
928928

929929
// Check if processor has Intel Ecore
930930
if (FLAG_IS_DEFAULT(EnableX86ECoreOpts) && is_intel() && cpu_family() == 6 &&
931-
(_model == 0x97 || _model == 0xAA || _model == 0xAC || _model == 0xAF)) {
931+
(_model == 0x97 || _model == 0xAA || _model == 0xAC || _model == 0xAF ||
932+
_model == 0xCC || _model == 0xDD)) {
932933
FLAG_SET_DEFAULT(EnableX86ECoreOpts, true);
933934
}
934935

src/hotspot/os/aix/osThread_aix.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ OSThread::OSThread()
3737
_siginfo(nullptr),
3838
_ucontext(nullptr),
3939
_expanding_stack(0),
40-
_alt_sig_stack(nullptr),
41-
_startThread_lock(new Monitor(Mutex::event, "startThread_lock")) {
40+
_alt_sig_stack(nullptr) {
4241
sigemptyset(&_caller_sigmask);
4342
}
4443

4544
OSThread::~OSThread() {
46-
delete _startThread_lock;
4745
}

src/hotspot/os/aix/osThread_aix.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,6 @@ class OSThread : public OSThreadBase {
114114
void set_alt_sig_stack(address val) { _alt_sig_stack = val; }
115115
address alt_sig_stack(void) { return _alt_sig_stack; }
116116

117-
private:
118-
Monitor* _startThread_lock; // sync parent and child in thread creation
119-
120-
public:
121-
122-
Monitor* startThread_lock() const {
123-
return _startThread_lock;
124-
}
125-
126117
// Printing
127118
uintx thread_id_for_printing() const override {
128119
return (uintx)_thread_id;

src/hotspot/os/aix/os_aix.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,12 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
711711
// Init thread attributes.
712712
pthread_attr_t attr;
713713
int rslt = pthread_attr_init(&attr);
714-
guarantee(rslt == 0, "pthread_attr_init has to return 0");
715-
guarantee(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED) == 0, "???");
714+
if (rslt != 0) {
715+
thread->set_osthread(nullptr);
716+
delete osthread;
717+
return false;
718+
}
719+
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
716720

717721
// Make sure we run in 1:1 kernel-user-thread mode.
718722
guarantee(pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM) == 0, "???");
@@ -792,6 +796,8 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
792796
// OSThread::thread_id is the pthread id.
793797
osthread->set_thread_id(tid);
794798

799+
// child thread synchronization is not done here on AIX, a thread is started in suspended state
800+
795801
return true;
796802
}
797803

src/hotspot/os/bsd/os_bsd.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,12 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
637637

638638
// init thread attributes
639639
pthread_attr_t attr;
640-
pthread_attr_init(&attr);
640+
int rslt = pthread_attr_init(&attr);
641+
if (rslt != 0) {
642+
thread->set_osthread(nullptr);
643+
delete osthread;
644+
return false;
645+
}
641646
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
642647

643648
// calculate stack size if it's not specified by caller

src/hotspot/share/c1/c1_Canonicalizer.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -536,17 +536,6 @@ void Canonicalizer::do_Intrinsic (Intrinsic* x) {
536536
}
537537
break;
538538
}
539-
case vmIntrinsics::_isPrimitive : {
540-
assert(x->number_of_arguments() == 1, "wrong type");
541-
542-
// Class.isPrimitive is known on constant classes:
543-
InstanceConstant* c = x->argument_at(0)->type()->as_InstanceConstant();
544-
if (c != nullptr && !c->value()->is_null_object()) {
545-
ciType* t = c->value()->java_mirror_type();
546-
set_constant(t->is_primitive_type());
547-
}
548-
break;
549-
}
550539
default:
551540
break;
552541
}

0 commit comments

Comments
 (0)