Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Feb 24, 2013
  1. @bnoordhuis

    test: remove 'is root?' check

    bnoordhuis authored
    I debug tests regularly as root (because dtrace and dtruss require the
    additional privileges). The 'is root?' check gets in the way more often
    than it prevents me from doing something silly. Remove it.
  2. @bnoordhuis
  3. @bnoordhuis

    bench: fix up fs_stat

    bnoordhuis authored
  4. @bnoordhuis
  5. @bnoordhuis

    unix: implement a better threadpool

    bnoordhuis authored
    Split the threadpool in two: a small one for CPU-bound workloads and
    a large one for I/O-bound workloads.
    
    The CPU threadpool has approximately as many threads as there are CPUs
    in the machine.
    
    The I/O threadpool can have hundreds of threads, which is okay because
    they should mostly be blocked in system calls.
    
    I/O threads run on a reduced stack (32 kB) to avoid using up too much
    virtual address space on 32 bits architectures.
  6. @bnoordhuis
  7. @bnoordhuis

    darwin: implement uv_set_process_title, part 2

    bnoordhuis authored
    Make changes to the process title visible to tools like `ps`.
    
    The argv clobber technique is reasonably portable across Unices;
    the common code has been moved into src/unix/proctitle.c and is used
    on Linux and OS X. Other platforms will probably follow in the future.
  8. @bnoordhuis

    darwin: implement uv_set_process_title, part 1

    bnoordhuis authored
    Apply undocumented Carbon magic to change the process title in a way
    that's visible in the Activity Monitor.
  9. @bnoordhuis

    build: support 64 bits darwin builds

    bnoordhuis authored
    Before this commit, gyp built 32 bits versions of libuv exclusively.
    
    Enable with:
    
      $ ./gyp_uv -Dtarget_arch=x64
Commits on Feb 22, 2013
  1. @tjfontaine @bnoordhuis

    test: add tap output

    tjfontaine authored bnoordhuis committed
    Given UV_TAP_OUTPUT being set, test result output should use TAP formatting
  2. @bnoordhuis

    unix: short-circuit on no-op io watcher changes

    bnoordhuis authored
    Don't add the io watcher to the watcher queue if the requested change
    is effectively a no-op, that is, when the event mask doesn't change.
    
    The exception here is sunos because the event ports backend requires
    that watched file descriptors are re-added on every turn of the event
    loop.
    
    This commit is a micro-optimization, it does not change the event
    loop's observable behavior in any way.
  3. @bnoordhuis

    unix: auto-unref spawn handle on process exit

    bnoordhuis authored
    Consistent, for better or worse, with uv-win.
    
    Fixes #718.
Commits on Feb 21, 2013
  1. @bnoordhuis

    unix: handle EINPROGRESS for unix sockets

    bnoordhuis authored
    Before this commit, it was assumed that connect() on UNIX sockets never
    returns EINPROGRESS. It turned out to be a bad assumption: Dave Pacheco
    reports sporadic hangups on SmartOS because of that.
    
    It's not clear to me _why_ the Illumos kernel returns that error but
    that's inconsequential: whatever the cause, libuv needs to handle it
    and now it does.
    
    Fixes joyent/node#4785.
  2. @bnoordhuis

    unix: use uv__set_artificial_error in uv_write2

    bnoordhuis authored
    * Use uv__set_artificial_error(), slightly more efficient than
      uv__set_sys_error().
    
    * Return UV_EINVAL instead of UV_EOPNOTSUPP.
    
    * Fix up style.
  3. @saghul @bnoordhuis

    unix: reduce line count, return uv__set_sys_error

    saghul authored bnoordhuis committed
  4. @saghul @bnoordhuis

    unix: fail early on bad send_handle in uv_write2

    saghul authored bnoordhuis committed
    Return UV_EBADF if send_handle doesn't have a valid fd.
Commits on Feb 20, 2013
  1. @bnoordhuis

    linux: fix abort() on epoll_ctl() race condition

    bnoordhuis authored
    Don't check the return value of epoll_ctl(EPOLL_CTL_DEL). When the
    file descriptor is closed, we're potentially racing with another
    thread and that means the errno is not a reliable indicator of
    the actual error.
    
    The other event mechanisms (kqueue, event ports) are not affected
    because:
    
    * kqueue returns either EBADF or ENOENT. Both are handled by libuv.
    * event ports rearms all file descriptors on each call to port_getn().
    
    Fixes joyent/node#4558.
  2. @bnoordhuis

    build: fix shared-after-static build

    bnoordhuis authored
    Executing `make libuv.so` after `make libuv.a` failed because the
    libuv.a target compiled the files in src/ without -fPIC.
    
    Make the libuv.so target depend on files with a different suffix to
    keep them separated.
  3. @bnoordhuis
  4. @bnoordhuis
  5. @bnoordhuis
  6. @bnoordhuis

    unix, windows: make uv_now() return uint64_t

    bnoordhuis authored
    Using int64_t doesn't make sense here because the return value is never
    negative.
  7. @txdv @bnoordhuis

    Return the errorcode provided by uv_set_artificial_error.

    txdv authored bnoordhuis committed
    This reduces the line count.
  8. @txdv @bnoordhuis

    Adhere to the naming conventions in uv_timer_* functions.

    txdv authored bnoordhuis committed
    In the src/*/timer.c code the first argument is called handle, not timer.
    We should be consistent in the interface definition file.
Commits on Feb 12, 2013
  1. @bnoordhuis
Commits on Feb 10, 2013
  1. @bnoordhuis

    unix, windows: make uv_fs_t.statbuf public

    bnoordhuis authored
    Make the statbuf field public. This means you no longer have to use
    req->ptr - though that still works and will continue to work for the
    foreseeable future.
    
    Fixes #704.
  2. @shigeki @bnoordhuis

    unix,windows: fix timer order in case of same timeout

    shigeki authored bnoordhuis committed
    Compare start_id of timer handles when they have the same timeout.
    start_id is allocated with loop->timer_counter in uv_timer_start.
Commits on Feb 8, 2013
  1. @indutny

    stream: use kevent() information before accept()

    indutny authored
    Limit number of syscalls by using backlog length information provided by
    kevent().
Commits on Feb 6, 2013
  1. @bnoordhuis

    darwin: make uv_cond_timedwait() clock skew safe

    bnoordhuis authored
    Use pthread_cond_timedwait_relative_np() so we're not prone to spurious
    bugs caused by clock skew.
  2. @saghul @bnoordhuis

    win: Avoid using subversion to download gyp

    saghul authored bnoordhuis committed
  3. @bnoordhuis

    darwin: merge uv_cond_timedwait implementation

    bnoordhuis authored
    This is a revised version of commit 8311390.
  4. @bnoordhuis

    unix: remove scandir prototype workaround in fs.c

    bnoordhuis authored
    It's not necessary for newer OS X releases and I don't care enough
    about OpenBSD to squelch the warning.
  5. @bnoordhuis

    Revert "darwin: merge uv_cond_timedwait implementation"

    bnoordhuis authored
    Using mach_absolute_time() for the pthread_cond_timedwait() timeout
    breaks a number of tests on OS X 10.8.2.
    
    This reverts commit 8311390.
Commits on Feb 4, 2013
  1. @bnoordhuis

    darwin: merge uv_cond_timedwait implementation

    bnoordhuis authored
    Merge the OS X specific implementation of uv_cond_timedwait() with the
    generic one. The only difference is that it now uses mach_absolute_time
    instead of gettimeofday.
Commits on Feb 2, 2013
  1. @bnoordhuis

    build: fix up WIN_SRCS

    bnoordhuis authored
Something went wrong with that request. Please try again.