ladybird/Userland/DevTools
Ben Wiederhake 292871c4bc UserspaceEmulator: Handle MAP_FIXED with invalid addresses better
Old behavior: Crash due to VERIFY, unless we're completely and entirely out of
memory (m_available_ranges being empty), in which case it would return -ENOMEM.

New behavior: Return ENOMEM (and don't crash). In the case of nullptr,
also emit a helpful diagnostic.

Note that MAP_FIXED with nullptr is technically okay, but tends to be a sign
that something went wrong.

Also, this should improve mmap performance marginally, as it pulls the check out
of a loop that does not modify any parts of the check.

UE is now self-hosting! Fixes #5709.

However, this still needs some love: "ue UserspaceEmulator true" spits out tons
of error messages, probably false-positives, and takes about 229 seconds to run.
Then again, true-in-ue-in-ue-in-Qemu is three levels of emulation, so no wonder
it takes a long time! :D
2021-03-11 08:54:54 +01:00
..
HackStudio HackStudio: Add language client check in identifier click 2021-03-09 07:54:30 +01:00
Inspector Everywhere: Remove a bunch of redundant 'AK::' namespace prefixes 2021-02-26 16:59:56 +01:00
IPCCompiler Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
Playground Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd" 2021-01-16 19:30:32 +01:00
Profiler Profiler: Get perfcore file from ArgsParser 2021-03-05 09:52:22 +01:00
UserspaceEmulator UserspaceEmulator: Handle MAP_FIXED with invalid addresses better 2021-03-11 08:54:54 +01:00
CMakeLists.txt DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00