Skip to content

Commit e7d4b36

Browse files
committed
8350667: Remove startThread_lock() and _startThread_lock on AIX
Reviewed-by: stuefe, jkern
1 parent 1e18fff commit e7d4b36

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

src/hotspot/os/aix/osThread_aix.cpp

+1-3
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

-9
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

+2
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,8 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
796796
// OSThread::thread_id is the pthread id.
797797
osthread->set_thread_id(tid);
798798

799+
// child thread synchronization is not done here on AIX, a thread is started in suspended state
800+
799801
return true;
800802
}
801803

0 commit comments

Comments
 (0)