提交 1a3e2d6f 编写于 作者: J jcoomes

6951923: some uses of fatal1 were missed by 6888954

Reviewed-by: jcoomes
Contributed-by: NGary Benson <gbenson@redhat.com>
上级 af048514
...@@ -288,7 +288,7 @@ static void current_stack_region(address *bottom, size_t *size) { ...@@ -288,7 +288,7 @@ static void current_stack_region(address *bottom, size_t *size) {
vm_exit_out_of_memory(0, "pthread_getattr_np"); vm_exit_out_of_memory(0, "pthread_getattr_np");
} }
else { else {
fatal1("pthread_getattr_np failed with errno = %d", res); fatal(err_msg("pthread_getattr_np failed with errno = %d", res));
} }
} }
...@@ -296,7 +296,7 @@ static void current_stack_region(address *bottom, size_t *size) { ...@@ -296,7 +296,7 @@ static void current_stack_region(address *bottom, size_t *size) {
size_t stack_bytes; size_t stack_bytes;
res = pthread_attr_getstack(&attr, (void **) &stack_bottom, &stack_bytes); res = pthread_attr_getstack(&attr, (void **) &stack_bottom, &stack_bytes);
if (res != 0) { if (res != 0) {
fatal1("pthread_attr_getstack failed with errno = %d", res); fatal(err_msg("pthread_attr_getstack failed with errno = %d", res));
} }
address stack_top = stack_bottom + stack_bytes; address stack_top = stack_bottom + stack_bytes;
...@@ -308,7 +308,7 @@ static void current_stack_region(address *bottom, size_t *size) { ...@@ -308,7 +308,7 @@ static void current_stack_region(address *bottom, size_t *size) {
size_t guard_bytes; size_t guard_bytes;
res = pthread_attr_getguardsize(&attr, &guard_bytes); res = pthread_attr_getguardsize(&attr, &guard_bytes);
if (res != 0) { if (res != 0) {
fatal1("pthread_attr_getguardsize failed with errno = %d", res); fatal(err_msg("pthread_attr_getguardsize failed with errno = %d", res));
} }
int guard_pages = align_size_up(guard_bytes, page_bytes) / page_bytes; int guard_pages = align_size_up(guard_bytes, page_bytes) / page_bytes;
assert(guard_bytes == guard_pages * page_bytes, "unaligned guard"); assert(guard_bytes == guard_pages * page_bytes, "unaligned guard");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册