diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2017-10-23 15:49:31 +0100 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2017-10-26 13:36:02 +0100 |
commit | 53446a42587eb0559c224523b4ead41820e43d30 (patch) | |
tree | 2730bc24c739fd57179e7c60342fc581faa3d7bf /annotations/generate_annotated_java_files.py | |
parent | db279ae6db5345a0b5455516f14d0316b739f520 (diff) |
Revert RandomAccessFile to fsync/fdatasync for rws/rwd
Using O_SYNC/O_DSYNC may cause hard to detect performance regressions.
RandomAccessFile.write may result in multiple write syscalls,
O_SYNC/O_DSYNC flags will cause a blocking wait on each syscall. Replacing
them with single fsync/fdatasync call gives better performance with only
minor decrease in reliability.
+ updated 'android-changed' comments to cannonical style.
Test: CtsLibcoreTestCases
Bug: 37996859
Change-Id: I1fa15a4dcf895f483a8f4b18e244611d8b64e718
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions