diff options
author | Fedor Indutny <fedor@indutny.com> | 2015-03-06 14:58:24 -0500 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2015-03-08 19:07:46 -0400 |
commit | 8670613d2d5dbfc191678caffe4c2bd228147046 (patch) | |
tree | 70f26051e5f669197f49560adbfa4d5bbd0c0fc4 /src/tls_wrap.cc | |
parent | f8c893dd39d2dc03bddd4a7a036484df027c94d6 (diff) | |
download | android-node-v8-8670613d2d5dbfc191678caffe4c2bd228147046.tar.gz android-node-v8-8670613d2d5dbfc191678caffe4c2bd228147046.tar.bz2 android-node-v8-8670613d2d5dbfc191678caffe4c2bd228147046.zip |
node_crypto_bio: adjust external memory size
Adjust V8's external memory size when allocating buffers for TLS data to
ensure that V8 has enough information to trigger the GC at right time.
PR-URL: https://github.com/iojs/io.js/pull/1085
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/tls_wrap.cc')
-rw-r--r-- | src/tls_wrap.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index c5d5d554d8..8ecf33a75a 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -127,6 +127,8 @@ void TLSWrap::InitSSL() { // Initialize SSL enc_in_ = NodeBIO::New(); enc_out_ = NodeBIO::New(); + NodeBIO::FromBIO(enc_in_)->AssignEnvironment(env()); + NodeBIO::FromBIO(enc_out_)->AssignEnvironment(env()); SSL_set_bio(ssl_, enc_in_, enc_out_); @@ -162,6 +164,7 @@ void TLSWrap::InitSSL() { // Initialize ring for queud clear data clear_in_ = new NodeBIO(); + clear_in_->AssignEnvironment(env()); } |