summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2019-05-03 15:57:21 -0700
committerHans Boehm <hboehm@google.com>2019-05-07 12:15:08 -0700
commit7fb72b885840cdcf316f835b47e467866fd70fed (patch)
tree38ff0e8e0230373c0be45c5c8fd44525c15ba8ea /annotations/generate_annotated_java_files.py
parent646fb0ac3aa7ccd05acbcbaa40d45b2fcf2a2bc0 (diff)
NativeAllocationRegistryTest fix and cleanup
Make gNumNativeBytesAllocated atomic; it's incremented and decremented by different threads! Fix expectedMaxNumAllocations to look at just Java memory. Probably doesn't matter, but makes a lot more sense. Add runFinalization call to make sure we have a clean slate. I'm not sure this is necessary to run Cleaners, but it can't hurt. Explicitly check that we filled in the saved table. It's hard to see how we wouldn't, but it was also hard to see how the following check could fail. Test: atest CtsLibcoreTestCases:libcore.libcore.util.NativeAllocationRegistryTest Bug: 131560790 Change-Id: I6cb17479e50681f4f944b8efc5dda3ecd37488f8
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions