Mercurial > hg > graal-jvmci-8
comparison src/os_cpu/linux_zero/vm/os_linux_zero.cpp @ 1522:67d74f7a15d9
6951923: some uses of fatal1 were missed by 6888954
Reviewed-by: jcoomes
Contributed-by: Gary Benson <gbenson@redhat.com>
author | jcoomes |
---|---|
date | Wed, 12 May 2010 10:28:13 -0700 |
parents | d11ce1551e8d |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1521:a8127dc669ba | 1522:67d74f7a15d9 |
---|---|
286 if (res != 0) { | 286 if (res != 0) { |
287 if (res == ENOMEM) { | 287 if (res == ENOMEM) { |
288 vm_exit_out_of_memory(0, "pthread_getattr_np"); | 288 vm_exit_out_of_memory(0, "pthread_getattr_np"); |
289 } | 289 } |
290 else { | 290 else { |
291 fatal1("pthread_getattr_np failed with errno = %d", res); | 291 fatal(err_msg("pthread_getattr_np failed with errno = %d", res)); |
292 } | 292 } |
293 } | 293 } |
294 | 294 |
295 address stack_bottom; | 295 address stack_bottom; |
296 size_t stack_bytes; | 296 size_t stack_bytes; |
297 res = pthread_attr_getstack(&attr, (void **) &stack_bottom, &stack_bytes); | 297 res = pthread_attr_getstack(&attr, (void **) &stack_bottom, &stack_bytes); |
298 if (res != 0) { | 298 if (res != 0) { |
299 fatal1("pthread_attr_getstack failed with errno = %d", res); | 299 fatal(err_msg("pthread_attr_getstack failed with errno = %d", res)); |
300 } | 300 } |
301 address stack_top = stack_bottom + stack_bytes; | 301 address stack_top = stack_bottom + stack_bytes; |
302 | 302 |
303 // The block of memory returned by pthread_attr_getstack() includes | 303 // The block of memory returned by pthread_attr_getstack() includes |
304 // guard pages where present. We need to trim these off. | 304 // guard pages where present. We need to trim these off. |
306 assert(((intptr_t) stack_bottom & (page_bytes - 1)) == 0, "unaligned stack"); | 306 assert(((intptr_t) stack_bottom & (page_bytes - 1)) == 0, "unaligned stack"); |
307 | 307 |
308 size_t guard_bytes; | 308 size_t guard_bytes; |
309 res = pthread_attr_getguardsize(&attr, &guard_bytes); | 309 res = pthread_attr_getguardsize(&attr, &guard_bytes); |
310 if (res != 0) { | 310 if (res != 0) { |
311 fatal1("pthread_attr_getguardsize failed with errno = %d", res); | 311 fatal(err_msg("pthread_attr_getguardsize failed with errno = %d", res)); |
312 } | 312 } |
313 int guard_pages = align_size_up(guard_bytes, page_bytes) / page_bytes; | 313 int guard_pages = align_size_up(guard_bytes, page_bytes) / page_bytes; |
314 assert(guard_bytes == guard_pages * page_bytes, "unaligned guard"); | 314 assert(guard_bytes == guard_pages * page_bytes, "unaligned guard"); |
315 | 315 |
316 #ifdef IA64 | 316 #ifdef IA64 |