commit | 94e421abbfc7ede9aaf3c8d86bb0ff9992ea3123 | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@chromium.org> | Thu Oct 25 13:44:27 2018 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Thu Oct 25 11:42:20 2018 -0700 |
tree | cc1dadd4f579293e5ed0ca3e1f04738e80cfa557 | |
parent | 2798ac1c28edc4ba6f2283784d1027393f588f8c [diff] |
Remove some use of Crap in hb-set. When hb_set_t::page_for_insert needs to insert at the end of the page_map it ends up evaluating '&page_map[i + 1]' which has hb_vector return an lvalue of a Crap so that nothing can be moved to its address. This turns into issues with ThreadSanitizer on Crap when two threads modify different hb_set_t instances. This can be avoided by using '&page_map[i] + 1' instead.