DeltaProcess::DeltaProcess(oop receiver, symbolOop selector, bool createThread) { _receiver = receiver; _selector = selector; _state = initialized; _is_terminating = false; _event = os::create_event(false); _thread = createThread ? os::create_thread((int (*)(void*)) &launch_delta, (void*) this, &_thread_id) : os::starting_thread(&_thread_id); _stack_limit = (char*)os::stack_limit(_thread); _unwind_head = NULL; _firstHandle = NULL; _time_stamp = 0; _isCallback = false; LOG_EVENT1("creating process %#lx", this); set_last_Delta_fp(NULL); set_last_Delta_sp(NULL); set_last_Delta_pc(NULL); Processes::add(this); }
DeltaProcess::DeltaProcess(oop receiver, symbolOop selector) { _receiver = receiver; _selector = selector; _state = initialized; _is_terminating = false; _event = os::create_event(false); _thread = os::create_thread((int (*)(void*)) &launch_delta, (void*) this, &_thread_id); _unwind_head = NULL; _time_stamp = 0; LOG_EVENT1("creating process %#lx", this); set_last_Delta_fp(NULL); set_last_Delta_sp(NULL); set_last_Delta_pc(NULL); Processes::add(this); }