Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created June 6, 2016 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbe/d1ef30376e5ae97a41096827026636cf to your computer and use it in GitHub Desktop.
Save peterbe/d1ef30376e5ae97a41096827026636cf to your computer and use it in GitHub Desktop.
SELECT ba.signature, bugs.id
FROM bugs
JOIN bug_associations AS ba ON bugs.id = ba.bug_id
WHERE EXISTS(
SELECT 1 FROM bug_associations
WHERE bug_associations.bug_id = bugs.id
AND signature IN ('js::ObjectGroup::sweep', 'strncpy | js::DecompileValueGenerator')
);
@peterbe
Copy link
Author

peterbe commented Jun 6, 2016

Results:

                                                 signature                                                 |   id
-----------------------------------------------------------------------------------------------------------+---------
 js::ObjectGroup::sweep                                                                                    | 1112741
 js::ObjectGroup::sweep(js::AutoClearTypeInferenceStateOnOOM*)                                             | 1112741
 js::ObjectGroup::maybeSweep                                                                               | 1112741
 js::types::TypeObject::maybeSweep                                                                         | 1112741
 js::ObjectGroup::maybeSweep(js::AutoClearTypeInferenceStateOnOOM*)                                        | 1112741
 js::ObjectGroup::maybeSweep(js::types::AutoClearTypeInferenceStateOnOOM*)                                 | 1112741
 js::types::TypeObject::maybeSweep(js::types::AutoClearTypeInferenceStateOnOOM*)                           | 1112741
 strncpy | js::DecompileValueGenerator                                                                     | 1154388
 strncpy | js::DecompileValueGenerator(JSContext*, int, JS::Handle<JS::Value>, JS::Handle<JSString*>, int) | 1154388
 strncpy | js::DecompileValueGenerator                                                                     | 1181142
 strncpy | js::DecompileValueGenerator(JSContext*, int, JS::Handle<T>, JS::Handle<T>, int)                 | 1181142
 js::ObjectGroup::sweep                                                                                    | 1263916
(12 rows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment