Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Oct 3, 2012
  1. @piscisaureus

    windows: make uv_rwlock_init initialize libuv

    piscisaureus authored
    Without this patch, the fallback implementation would be used if
    uv_rwlock_init were to be called before a loop was created or
    uv_default_loop() was called.
  2. @arturadib @bnoordhuis

    unix: move queue stuff from fs.c to threadpool.c

    arturadib authored bnoordhuis committed
  3. @shigeki @piscisaureus

    test, windows: fix duplicated windows.h

    shigeki authored piscisaureus committed
    including windows.h before winsock2.h cause build error
Commits on Oct 2, 2012
  1. @bnoordhuis

    test: fix windows #include bug

    bnoordhuis authored
    Fixes a "'AF_IPX' : macro redefinition" warning when compiling test/runner.c.
  2. @bnoordhuis

    test: fix uninitialized memory warning, use calloc

    bnoordhuis authored
    Fixes the following valgrind warning:
      ==29019== Syscall param writev(vector[...]) points to uninitialised byte(s)
      ==29019==    at 0x584270B: writev (writev.c:51)
      ==29019==    by 0x449BB2: uv__write (stream.c:733)
      ==29019==    by 0x44AE91: uv_write2 (stream.c:1159)
      ==29019==    by 0x44AF25: uv_write (stream.c:1180)
      ==29019==    by 0x42CCAA: connect_cb (test-tcp-writealot.c:129)
      ==29019==    by 0x44AC05: uv__stream_connect (stream.c:1097)
      ==29019==    by 0x44AA25: uv__stream_io (stream.c:1050)
      ==29019==    by 0x437430: uv__io_rw (core.c:539)
      ==29019==    by 0x43C3D9: ev_invoke_pending (ev.c:2145)
      ==29019==    by 0x436EC5: uv__poll (core.c:260)
      ==29019==    by 0x436F0F: uv__run (core.c:269)
      ==29019==    by 0x436F6E: uv_run (core.c:277)
      ==29019==  Address 0x5f15040 is 0 bytes inside a block of size 94,371,840 alloc'd
      ==29019==    at 0x4C2C5EF: malloc (vg_replace_malloc.c:270)
      ==29019==    by 0x42CDED: run_test_tcp_writealot (test-tcp-writealot.c:148)
      ==29019==    by 0x406551: run_test_part (runner.c:302)
      ==29019==    by 0x405384: main (run-tests.c:57)
  3. @bnoordhuis

    unix: fix uninitialized memory read in uv__read()

    bnoordhuis authored
    This commit fixes the following valgrind warning:
      ==26443== Conditional jump or move depends on uninitialised value(s)
      ==26443==    at 0x44AAFF: uv__read (stream.c:872)
      ==26443==    by 0x44ADD4: uv__stream_io (stream.c:1051)
      ==26443==    by 0x4377B8: uv__io_rw (core.c:539)
      ==26443==    by 0x43C761: ev_invoke_pending (ev.c:2145)
      ==26443==    by 0x43724D: uv__poll (core.c:260)
      ==26443==    by 0x437297: uv__run (core.c:269)
      ==26443==    by 0x4372F6: uv_run (core.c:277)
      ==26443==    by 0x42094B: run_test_pipe_ref4 (test-ref.c:334)
      ==26443==    by 0x406551: run_test_part (runner.c:302)
      ==26443==    by 0x405384: main (run-tests.c:57)
  4. @bnoordhuis
  5. @bnoordhuis
  6. @bnoordhuis
  7. @bnoordhuis
  8. @bnoordhuis

    unix: fix small race in fs.c

    bnoordhuis authored
    Don't return req->result after posting the work request. It's possible (if
    unlikely) for a worker thread to process the request before the main thread
    reaches the return statement.
  9. @bnoordhuis

    unix: emulate sendfile if necessary

    bnoordhuis authored
    Some platforms don't support sendfile() (netbsd, openbsd), others don't support
    arbitrary file descriptors (freebsd, darwin) and yet others have quirks in their
    implementation (sunos).
    Work around the quirks. If all else fails, fall back to sendfile() emulation.
  10. @bnoordhuis

    unix: fix scandir filter prototype

    bnoordhuis authored
    The dirent argument is const on systems that conform to POSIX.2008 (Linux and
    Solaris) but non-const on others.
Commits on Oct 1, 2012
  1. @bnoordhuis
  2. @bnoordhuis
  3. @bnoordhuis

    unix, windows: fix memory leak in fs-poll.c

    bnoordhuis authored
    The internal timer handle associated with the uv_fs_poll_t wasn't always closed
    when the fs poll handle was closed, leaking about 650 bytes memory.
  4. @bnoordhuis
  5. @piscisaureus
  6. @bnoordhuis

    unix: remove uv_fs_stat windows compat hack

    bnoordhuis authored
    uv_fs_stat and uv_fs_lstat removed the trailing backslash (if any) from the path
    in order to please a test case that was written for Windows. Remove the
    compatibility hack and fix the test.
  7. @bnoordhuis

    test: close handle in ref tests

    bnoordhuis authored
    Everything that gets reported by valgrind now is an actual memory leak.
  8. @bnoordhuis

    unix: remove libeio

    bnoordhuis authored
  9. @bnoordhuis
  10. @bnoordhuis
  11. @bnoordhuis
  12. @bnoordhuis
  13. @bnoordhuis

    linux: please valgrind, free memory at exit

    bnoordhuis authored
    Free the memory that is used to store the new argv and envp. It's not strictly
    necessary (the OS is going to reclaim the memory anyway) but it makes the output
    from valgrind a lot less noisy.
  14. @bnoordhuis
  15. @bnoordhuis

    test: delete default loop after test run

    bnoordhuis authored
    Delete the default event loop after the test completes. Keeps valgrind happy.
  16. @bnoordhuis

    test: add valgrind support

    bnoordhuis authored
    Run tests through valgrind when UV_USE_VALGRIND=1 is set in the environment.
  17. @bnoordhuis
  18. @bnoordhuis
  19. @piscisaureus
Commits on Sep 28, 2012
  1. @bnoordhuis
  2. @bnoordhuis
  3. @bnoordhuis
Something went wrong with that request. Please try again.