OSDN Git Service

ART: Track Flush & Close in FdFile
authorAndreas Gampe <agampe@google.com>
Thu, 6 Nov 2014 09:00:46 +0000 (01:00 -0800)
committerAndreas Gampe <agampe@google.com>
Tue, 18 Nov 2014 16:55:23 +0000 (08:55 -0800)
commit9433ec60b325b708b9fa87e699ab4a6565741494
tree3d989af3ed3f09666cd0d6c6309ff70f26211b20
parenta477bbb62ba197815d840d07708526a2bb9c8b4d
ART: Track Flush & Close in FdFile

Implement a check that aborts when a file hasn't been explicitly
flushed and closed when it is destructed.

Add WARN_UNUSED to FdFile methods.

Update dex2oat, patchoat, scoped_flock and some gtests to pass with
this.

Change-Id: I9ab03b1653e69f44cc98946dc89d764c3e045dd4
22 files changed:
compiler/image_test.cc
compiler/image_writer.cc
dex2oat/dex2oat.cc
patchoat/patchoat.cc
runtime/Android.mk
runtime/base/scoped_flock.cc
runtime/base/unix_file/fd_file.cc
runtime/base/unix_file/fd_file.h
runtime/base/unix_file/fd_file_test.cc
runtime/base/unix_file/mapped_file.cc
runtime/base/unix_file/mapped_file.h
runtime/base/unix_file/mapped_file_test.cc
runtime/base/unix_file/random_access_file_test.h
runtime/base/unix_file/random_access_file_utils_test.cc
runtime/common_runtime_test.cc
runtime/dex_file_test.cc
runtime/dex_file_verifier_test.cc
runtime/gc/space/image_space.cc
runtime/hprof/hprof.cc
runtime/signal_catcher.cc
runtime/trace.cc
runtime/zip_archive_test.cc