1. Jun 27, 2013
  2. Jun 26, 2013
    • Fedor Indutny's avatar
      crypto: do not move half-filled write head · 4ae96c88
      Fedor Indutny authored
      Might cause write head running over read head, when there were no
      allocation and `Commit()` was called. Source of at least one test
      failure on windows (`simple/test-https-drain.js`).
      4ae96c88
    • isaacs's avatar
      Merge remote-tracking branch 'ry/v0.10' into master · adf9b67e
      isaacs authored
      Conflicts:
      	ChangeLog
      	deps/uv/ChangeLog
      	deps/uv/src/unix/stream.c
      	deps/uv/src/version.c
      	deps/v8/build/common.gypi
      	deps/v8/src/frames.h
      	deps/v8/src/runtime.cc
      	deps/v8/test/mjsunit/debug-set-variable-value.js
      	lib/http.js
      	src/node_version.h
      adf9b67e
  3. Jun 24, 2013
  4. Jun 21, 2013
  5. Jun 20, 2013
  6. Jun 19, 2013
    • Trevor Norris's avatar
      buffer: proper API export for Windows · 7373c4dd
      Trevor Norris authored
      So that Windows users can properly include smalloc and node_buffer,
      NODE_EXTERN was added to the headers that export this functionality.
      7373c4dd
    • Trevor Norris's avatar
      buffer: implement new fill behavior · 4b403588
      Trevor Norris authored
      Old fill would take the char code of the first character and wrap around
      the int to fit in the 127 range. Now fill will duplicate whatever string
      is given through the entirety of the buffer.
      
      Note: There is one bug around ending on a partial fill of any character
      outside the ASCII range.
      4b403588
    • Trevor Norris's avatar
      buffer: deprecate legacy code · f4896491
      Trevor Norris authored
      Several things are now no longer necessary. These have been deprecated,
      and will be removed in v0.13.
      f4896491
    • Trevor Norris's avatar
      buffer: remove c-style casts · 56869d9a
      Trevor Norris authored
      56869d9a
    • Trevor Norris's avatar
      buffer: expose class methods alloc and dispose · fb40da82
      Trevor Norris authored
      Expose the ability for users to allocate and manually dispose data on
      any object. These are user-safe versions of internal smalloc functions.
      fb40da82
    • Trevor Norris's avatar
      buffer: reimplement Buffer pools · 456942a9
      Trevor Norris authored
      While the new Buffer implementation is much faster we still have the
      necessity of using Buffer pools. This is undesirable because it may
      still lead to unwanted memory retention, but for the time being this is
      the best solution.
      
      Because of this re-introduction, and since there is no more SlowBuffer
      type, the SlowBuffer method has been re-purposed to return a non-pooled
      Buffer instance. This will be helpful for developers to store data for
      indeterminate lengths of time without introducing a memory leak.
      
      Another change to Buffer pools was that they are only allocated if the
      requested chunk is < poolSize / 2. This was done because allocations are
      much quicker now, and it's a better use of the pool.
      456942a9
    • Trevor Norris's avatar
      buffer: use smalloc as backing data store · 3a2f273b
      Trevor Norris authored
      Memory allocations are now done through smalloc. The Buffer cc class has
      been removed completely, but for backwards compatibility have left the
      namespace as Buffer.
      
      The .parent attribute is only set if the Buffer is a slice of an
      allocation. Which is then set to the alloc object (not a Buffer).
      
      The .offset attribute is now a ReadOnly set to 0, for backwards
      compatibility. I'd like to remove it in the future (pre v1.0).
      
      A few alterations have been made to how arguments are either coerced or
      thrown. All primitives will now be coerced to their respective values,
      and (most) all out of range index requests will throw.
      
      The indexes that are coerced were left for backwards compatibility. For
      example: Buffer slice operates more like Array slice, and coerces
      instead of throwing out of range indexes. This may change in the future.
      
      The reason for wanting to throw for out of range indexes is because
      giving js access to raw memory has high potential risk. To mitigate that
      it's easier to make sure the developer is always quickly alerted to the
      fact that their code is attempting to access beyond memory bounds.
      
      Because SlowBuffer will be deprecated, and simply returns a new Buffer
      instance, all tests on SlowBuffer have been removed.
      
      Heapdumps will now show usage under "smalloc" instead of "Buffer".
      
      ParseArrayIndex was added to node_internals to support proper uint
      argument checking/coercion for external array data indexes.
      
      SlabAllocator had to be updated since handle_ no longer exists.
      3a2f273b
    • Trevor Norris's avatar
      smalloc: add api to manually dispose Persistent · 252cdfa4
      Trevor Norris authored
      If the user knows the allocation is no longer needed then the memory can
      be manually released.
      
      Currently this will not ClearWeak the Persistent, so the callback will
      still run.
      
      If the user passed a ClearWeak callback, and then disposed the object,
      the buffer callback argument will == NULL.
      252cdfa4
    • Trevor Norris's avatar
      smalloc: initial implementation · 8f3f9f78
      Trevor Norris authored
      smalloc is a simple utility for quickly allocating external memory onto
      js objects. This will be used to centralize how memory is managed in
      node, and will become the backer for Buffers. So in the future crypto's
      SlabBuffer, stream's SlabAllocator will be removed.
      
      Note on the js API: because no arguments are optional the order of
      arguments have been placed to match their cc counterparts as closely as
      possible.
      8f3f9f78
    • Sam Roberts's avatar
      doc: call console module 'console' not 'stdio' · 5fc8efb8
      Sam Roberts authored
      The console module has always been called 'stdio' in the
      table-of-contents, but nowhere else, since its name is
      'console'. This makes it difficult to find.
      
      This is a back-port of commit 226a20da from the master branch.
      5fc8efb8
    • isaacs's avatar
      blog: Release 0.10.12 · 67cb8015
      isaacs authored
      67cb8015
    • isaacs's avatar
      Now working on 0.10.13 · 637acb2b
      isaacs authored
      637acb2b
    • isaacs's avatar
      Merge branch 'v0.10.12-release' into v0.10 · 59dde819
      isaacs authored
      59dde819
    • isaacs's avatar
      2013.06.18, Version 0.10.12 (Stable) · a088cf4f
      isaacs authored
      * npm: Upgrade to 1.2.32
      
      * readline: make `ctrl + L` clear the screen (Yuan Chuan)
      
      * v8: add setVariableValue debugger command (Ben Noordhuis)
      
      * net: Do not destroy socket mid-write (isaacs)
      
      * v8: fix build for mips32r2 architecture (Andrei Sedoi)
      
      * configure: fix cross-compilation host_arch_cc() (Andrei Sedoi)
      a088cf4f
    • isaacs's avatar
      npm: Upgrade to 1.2.32 · 91954556
      isaacs authored
      91954556
  7. Jun 18, 2013
  8. Jun 17, 2013