src/os_cpu/linux_zero/vm/os_linux_zero.cpp

changeset 1877
67d74f7a15d9
parent 1611
d11ce1551e8d
child 1907
c18cbe5936b8
     1.1 --- a/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Mon May 10 12:31:52 2010 -0700
     1.2 +++ b/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Wed May 12 10:28:13 2010 -0700
     1.3 @@ -288,7 +288,7 @@
     1.4        vm_exit_out_of_memory(0, "pthread_getattr_np");
     1.5      }
     1.6      else {
     1.7 -      fatal1("pthread_getattr_np failed with errno = %d", res);
     1.8 +      fatal(err_msg("pthread_getattr_np failed with errno = %d", res));
     1.9      }
    1.10    }
    1.11  
    1.12 @@ -296,7 +296,7 @@
    1.13    size_t stack_bytes;
    1.14    res = pthread_attr_getstack(&attr, (void **) &stack_bottom, &stack_bytes);
    1.15    if (res != 0) {
    1.16 -    fatal1("pthread_attr_getstack failed with errno = %d", res);
    1.17 +    fatal(err_msg("pthread_attr_getstack failed with errno = %d", res));
    1.18    }
    1.19    address stack_top = stack_bottom + stack_bytes;
    1.20  
    1.21 @@ -308,7 +308,7 @@
    1.22    size_t guard_bytes;
    1.23    res = pthread_attr_getguardsize(&attr, &guard_bytes);
    1.24    if (res != 0) {
    1.25 -    fatal1("pthread_attr_getguardsize failed with errno = %d", res);
    1.26 +    fatal(err_msg("pthread_attr_getguardsize failed with errno = %d", res));
    1.27    }
    1.28    int guard_pages = align_size_up(guard_bytes, page_bytes) / page_bytes;
    1.29    assert(guard_bytes == guard_pages * page_bytes, "unaligned guard");

mercurial