[SERVER-22520] Educate ASAN leak checker about js allocations Created: 08/Feb/16  Updated: 15/Aug/17  Resolved: 07/Apr/17

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 3.3.1
Fix Version/s: 3.4.4, 3.5.6

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: bkp, platforms-re-triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-22851 Add the continuous stepdown suite to ... Backlog
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: Platforms 2017-04-17
Participants:
Linked BF Score: 0

 Description   

ASAN has trouble dealing with the heap allocations SpiderMonkey produces, due to the storage format of those pointers (tagged punbox'd types). Keeping a side std::unordered_set<void*> which tracks allocations provides the reachability ASAN needs for a little bit of extra book keeping.



 Comments   
Comment by Githook User [ 09/Apr/17 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-22520 Improve ASAN MozJS integration

ASAN has trouble dealing with the heap allocations SpiderMonkey
produces, due to the storage format of those pointers (tagged punbox'd
types). Keeping a side std::unordered_set<void*> which tracks
allocations provides the reachability ASAN needs for a little bit of
extra book keeping.

(cherry picked from commit 96f0fbd7911533fd4279742d81cf53b198d71b03)
Branch: v3.4
https://github.com/mongodb/mongo/commit/be3d66e78ccbf8e9cb96f1a7b1c270d84fab9b8a

Comment by Githook User [ 07/Apr/17 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-22520 Improve ASAN MozJS integration

ASAN has trouble dealing with the heap allocations SpiderMonkey
produces, due to the storage format of those pointers (tagged punbox'd
types). Keeping a side std::unordered_set<void*> which tracks
allocations provides the reachability ASAN needs for a little bit of
extra book keeping.
Branch: master
https://github.com/mongodb/mongo/commit/96f0fbd7911533fd4279742d81cf53b198d71b03

Generated at Thu Feb 08 04:00:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.