Skip to content

Windows/ImageTracker: Wire up LoadCache and EnableLoadedSection #5501

Open
bylaws wants to merge 8 commits into
FEX-Emu:mainfrom
bylaws:finishloadwin
Open

Windows/ImageTracker: Wire up LoadCache and EnableLoadedSection #5501
bylaws wants to merge 8 commits into
FEX-Emu:mainfrom
bylaws:finishloadwin

Conversation

@bylaws
Copy link
Copy Markdown
Collaborator

@bylaws bylaws commented May 17, 2026

The lazy code loading refactor replaced LoadData with the new LoadCache/EnableLoadedSection API but left the Windows path as TODOs.
Implement the wiring: LoadAOTImages now calls LoadCache + RegisterMappedCodeBuffer for each mapped cache file, and HandleImageMap calls EnableLoadedSection (with nullptr thread since lazy mapping is not yet implemented on Windows).

bylaws and others added 8 commits May 17, 2026 22:35
This allows mapping the code directly into memory for execution.
…ation

This ensures that any code buffer memory owned by the MappedResource is
invalidated before being deallocated.
The lazy code loading refactor replaced LoadData with the new
LoadCache/EnableLoadedSection API but left the Windows path as TODOs.
Implement the wiring: LoadAOTImages now calls LoadCache +
RegisterMappedCodeBuffer for each mapped cache file, and HandleImageMap
calls EnableLoadedSection (with nullptr thread since lazy mapping is not
yet implemented on Windows).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants