fix YAPOR_THREADS (prof. Vitor Costa)

This commit is contained in:
João Santos
2013-12-17 15:57:24 +00:00
parent da0f807abf
commit 2e3f99d89a
3 changed files with 66 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ store_specs(int new_worker_id, UInt ssize, UInt tsize, UInt sysize, Term *tpgoal
REMOTE_c_output_stream(new_worker_id) = REMOTE_c_output_stream(0);
REMOTE_c_error_stream(new_worker_id) = REMOTE_c_error_stream(0);
}
pm = (ssize + tsize)*1024;
pm = (ssize + tsize)*K1;
if (!(REMOTE_ThreadHandle(new_worker_id).stack_address = malloc(pm))) {
return FALSE;
}