[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: |
|
||||||||
| 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: |
| 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: |
| 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: |