Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 4866658f7da2
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 6eaaaca454a9
Choose a head ref
  • 11 commits
  • 63 files changed
  • 4 contributors

Commits on Oct 29, 2013

  1. build: use zero overhead systemtap probes

    Profiling suggested that on Linux sometimes over 10% of CPU time was
    being spent inside the systemtap probe entry points in the binding
    layer, even when the process was not actively being traced with the
    `stap` tool.
    
    That's why this commit makes it possible to use the *_ENABLED() macros
    and bail out early when we're not being traced, reducing the overhead
    of unused probes to (almost) zero.
    
    Said macros were already being generated by `dtrace -h` but were not
    usable because they rely on external definitions.  To remedy that, we
    now generate the accompanying object files with `dtrace -G`.
    
    This commit includes a change to libuv that has been landed upstream in
    commit joyent/libuv@3c172ea.
    bnoordhuis committed Oct 29, 2013
    Copy the full SHA
    c4def50 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2013

  1. Copy the full SHA
    21fbbd5 View commit details
    Browse the repository at this point in the history
  2. node: add AsyncListener support

    AsyncListener is a JS API that works in tandem with the AsyncWrap class
    to allow the user to be alerted to key events in the life cycle of an
    asynchronous event. The AsyncWrap class has its own MakeCallback
    implementation that core will be migrated to use, and uses state sharing
    techniques to allow quicker communication between JS and C++ whether the
    async event callbacks need to be called.
    trevnorris committed Oct 31, 2013
    Copy the full SHA
    efa62fd View commit details
    Browse the repository at this point in the history
  3. async-wrap: integrate with WeakObject

    Making WeakObject inherit from AsyncWrap allows us to peak into almost
    all the MakeCallback calls in Node internals.
    trevnorris committed Oct 31, 2013
    Copy the full SHA
    8b8e3b6 View commit details
    Browse the repository at this point in the history
  4. async-wrap: add methods to udp/tcp/pipe/timers

    Now it's possible to add/remove an async listener to an individual
    handle created by UDP, TCP, Pipe or Timer.
    trevnorris committed Oct 31, 2013
    Copy the full SHA
    0ba9ec4 View commit details
    Browse the repository at this point in the history
  5. crypto: convert RandomBytesRequest to a class

    Since RandomBytesRequest makes a call to MakeCallback, needed it to be
    a class so AsyncWrap could handle any async listeners.
    
    Also added a simple test for an issue had during implementation where
    the memory was being released and returned.
    trevnorris committed Oct 31, 2013
    Copy the full SHA
    9415e5c View commit details
    Browse the repository at this point in the history
  6. crypto: convert pbkdf2_req to a class

    pbkdf2_req has been renamed to PBKDF2Request and converted to a class.
    It now uses AsyncWrap::MakeCallback.
    
    Also includes, using env()->ondone_string() instead of "ondone" and
    using malloc instead of new char[].
    trevnorris committed Oct 31, 2013
    Copy the full SHA
    77f537e View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    81846dc View commit details
    Browse the repository at this point in the history
  8. domain: use AsyncListener API

    The domain module has been switched over to use the domain module API as
    much as currently possible. There are still some hooks in the
    EventEmitter, but hopefully we can remove those in the future.
    trevnorris committed Oct 31, 2013
    Copy the full SHA
    89071b4 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    5a87cda View commit details
    Browse the repository at this point in the history
  10. doc: add docs for AsyncListeners

    Documentation has been added on how to use the AsyncListener API.
    trevnorris committed Oct 31, 2013
    Copy the full SHA
    6eaaaca View commit details
    Browse the repository at this point in the history