Skip to content

Commit

Permalink
[Pal/Linux-SGX] Make message on thread allocation failure more friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
yamahata authored and mkow committed Apr 26, 2019
1 parent 10994e1 commit 8483219
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Pal/src/host/Linux-SGX/sgx_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ static void * thread_start (void * arg)
current_enclave = arg;

if (!current_tcs) {
SGX_DBG(DBG_E, "Cannot attach to any TCS!\n");
SGX_DBG(DBG_E,
"There are no available TCS pages left for a new thread!\n"
"Please try to increase sgx.thread_num in the manifest.\n"
"The current value is %d\n", enclave_thread_num);
return NULL;
}

Expand Down

0 comments on commit 8483219

Please sign in to comment.