Skip to content

Commit 6ce75ef

Browse files
committedApr 25, 2015
Abort on failure to allocate an internal thread.
1 parent b57399f commit 6ce75ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎vm/internal_threads.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ namespace rubinius {
7676

7777
if(int error = pthread_create(&vm_->os_thread(), &attrs,
7878
InternalThread::run, (void*)this)) {
79-
logger::error("%s: %s: create thread failed", strerror(error), name_.c_str());
79+
logger::fatal("%s: %s: create thread failed", strerror(error), name_.c_str());
80+
::abort();
8081
}
8182
}
8283

0 commit comments

Comments
 (0)