summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2016-12-01 18:27:39 +0000
committerNeil Fuller <nfuller@google.com>2016-12-12 15:46:18 +0000
commitd443d10a1a95b3020cba24b0940b3e1ea3e8ce7d (patch)
tree18a297d44032d5d1d7ad2e24b0a32469e45c5bd3 /annotations/generate_annotated_java_files.py
parent56d22f0ff5c9202024741e402722b0acd33af1a2 (diff)
Boundary checks / synchronization / tests for MemoryMappedFile
Hardening MemoryMappedFile against boundary conditions and edge cases. Many tests added. Thread safety has been dropped entirely as part of this change: expected usage is single threaded. It was previously possible to unmap the file, but the BufferIterator would carry on attempting to read from the address space. Motivation: The ZoneInfoDB code will soon be modified to expect exceptions if reads / writes are out of bounds and it's more appropriate to make the exceptions part of the MemoryMappedFile contract. Bug: 31008728 Test: CtsLibcoreTestCases Change-Id: I58cba7498c5fcd074054b13dbd6b313d6c1bfbe6
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions