diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-08-03 10:33:16 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-08-03 10:33:16 -0700 |
commit | a6bc68a83beda7609330e525a73b7b227a1b9207 (patch) | |
tree | 062a3379d6db01815268a2278c6f5ed8b9f6298e /deps/v8/src/global-handles.cc | |
parent | 4b19bd28967101b7afed3819cf595d4f04a1b11e (diff) | |
download | node-a6bc68a83beda7609330e525a73b7b227a1b9207.tar.gz |
Upgrade V8 to 2.3.4
Diffstat (limited to 'deps/v8/src/global-handles.cc')
-rw-r--r-- | deps/v8/src/global-handles.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/v8/src/global-handles.cc b/deps/v8/src/global-handles.cc index 573669a45..f089b85e1 100644 --- a/deps/v8/src/global-handles.cc +++ b/deps/v8/src/global-handles.cc @@ -226,6 +226,12 @@ class GlobalHandles::Pool BASE_EMBEDDED { limit_ = current_->nodes + kNodesPerChunk; } + ~Pool() { + if (current_ != NULL) { + Release(); + } + } + Node* Allocate() { if (next_ < limit_) { return next_++; |