class PatcherWithGlobalCacheConsistency

Defined at line 115 of file ../../zircon/kernel/lib/code-patching/include/lib/code-patching/code-patching.h

This is the same as code_patching::Patcher, but Instruction-cache coherence

among the modified ranges is also managed by the class: it will be effected

on destruction or each time Commit() is called.

This should be used when the patches are being applied to code that has

already been loaded into pages that might have been executed.

Public Methods

void PatcherWithGlobalCacheConsistency ()

Defined at line 117 of file ../../zircon/kernel/lib/code-patching/include/lib/code-patching/code-patching.h

void Commit ()

Forces instruction-data cache consistency among the modified ranges since

construction or when this method was last called. In general, it is not

required that this method be called; consistency will also be reached upon

destruction of the PatcherWithGlobalCacheConsistency object.

Defined at line 124 of file ../../zircon/kernel/lib/code-patching/include/lib/code-patching/code-patching.h