summaryrefslogtreecommitdiff
path: root/tests/malloc_test.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2020-10-02 13:47:03 -0700
committerPeter Collingbourne <pcc@google.com>2020-10-02 15:46:31 -0700
commit4edf74ab1ae2da4bda80d19f4c014e983c74903d (patch)
tree779b3fc2615e6c7b0792a51fd61fc7f7089144fd /tests/malloc_test.cpp
parent897fd6ecb3a7c8964cf50f8926bbaeb6e46449eb (diff)
Add an internal struct layout test.
A downstream user of bionic has a test that requires the sizes and offsets of various fields in pthread_internal_t to be consistent between x86 and arm32, and between x86_64 and arm64, by checking that the sizes and offsets match hardcoded constants. Since this test often makes it difficult to update bionic's internal data structures, add a test to bionic that does the same thing so that we can remove the downstream test and make it easier to change internal data structures in bionic. Change-Id: Id5bd3f9fae00aa3b50d1b1267e782e26fe6c8369
Diffstat (limited to 'tests/malloc_test.cpp')
0 files changed, 0 insertions, 0 deletions