MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / removeCode

Method removeCode

source/kernel/kmemory.cpp:559–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558#endif
559void KMemory::removeCode(KThread* thread, U32 address, U32 len, bool becauseOfWrite) {
560 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(mutex)
561#if defined(BOXEDWINE_JIT)
562 data->opCache.iterateOps(address, len, opCallback, this);
563 data->opCache.remove(address, len, becauseOfWrite);
564#else
565 data->opCache.remove(address, len, becauseOfWrite);
566#endif
567}
568
569void KMemory::clearPageWriteCounts(U32 pageIndex) {
570 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(mutex)

Callers 5

setPageMethod · 0.80
writebMethod · 0.80
writewMethod · 0.80
writedMethod · 0.80
getRamPtrMethod · 0.80

Calls 2

iterateOpsMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected