[SERVER-8016] Properly allocate v8 handles on the stack Created: 22/Dec/12  Updated: 14/Apr/16  Resolved: 15/Jan/16

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 2.3.2
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Ben Becker Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-9291 V8Scope::invoke shouldn't silently ig... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Function argument handles were sometimes allocated on the heap, but this is not legal. We need a better way of converting BSONObj arguments to v8 arguments. Initial thought was alloca() and the new placement operator, but this is not cross-platform.



 Comments   
Comment by auto [ 22/Dec/12 ]

Author:

{u'date': u'2012-12-22T01:39:52Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}

Message: SERVER-8016: temporary build fix for windows (using fixed size handle array)
Branch: master
https://github.com/mongodb/mongo/commit/23b5cd33dbb11262523811f6ceadb32a240c1ad2

Comment by auto [ 22/Dec/12 ]

Author:

{u'date': u'2012-12-22T01:06:14Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}

Message: SERVER-8016: temporary build fix for windows (using fixed size handle array)
Branch: master
https://github.com/mongodb/mongo/commit/41928dcbf0364d81386286e125a86a2b5d0d69e8

Comment by auto [ 22/Dec/12 ]

Author:

{u'date': u'2012-12-22T00:43:12Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}

Message: SERVER-8016: temporary build fix for windows (using fixed size handle array)
Branch: master
https://github.com/mongodb/mongo/commit/7bbe9e7341dcbd777825ed8786a717ed08ff3420

Generated at Thu Feb 08 03:16:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.