34
35 // ***************************************************************
36 // Platform dependent initialization and cleanup
37 // ***************************************************************
38
39 void OSThread::pd_initialize() {
40 _thread_id = 0;
41 sigemptyset(&_caller_sigmask);
42
43 _vm_created_thread = false;
44 }
45
46 void OSThread::pd_destroy() {
47 }
48
49 // copied from synchronizer.cpp
50
51 void OSThread::SR_handler(Thread* thread, ucontext_t* uc) {
52 os::Solaris::SR_handler(thread, uc);
53 }
|
34
35 // ***************************************************************
36 // Platform dependent initialization and cleanup
37 // ***************************************************************
38
39 void OSThread::pd_initialize() {
40 _thread_id = 0;
41 sigemptyset(&_caller_sigmask);
42
43 _vm_created_thread = false;
44 }
45
46 void OSThread::pd_destroy() {
47 }
48
49 // copied from synchronizer.cpp
50
51 void OSThread::SR_handler(Thread* thread, ucontext_t* uc) {
52 os::Solaris::SR_handler(thread, uc);
53 }
54
55 bool OSThread::is_online() {
56 // TODO: Solaris can do better: find out if a thread is ONPROC.
57 return true;
58 }
|