MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / Madvise

Method Madvise

Bcore/src/main/cpp/dex/dex_file_layout.cc:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void DexLayoutSection::Subsection::Madvise(const DexFile* dex_file, int advice) const {
43 DCHECK(dex_file != nullptr);
44 DCHECK_LT(start_offset_, dex_file->Size());
45 DCHECK_LE(end_offset_, dex_file->Size());
46 MadviseLargestPageAlignedRegion(dex_file->Begin() + start_offset_,
47 dex_file->Begin() + end_offset_,
48 advice);
49}
50
51void DexLayoutSections::Madvise(const DexFile* dex_file, MadviseState state) const {
52 // The dex file is already defaulted to random access everywhere.

Callers

nothing calls this directly

Calls 2

BeginMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected