1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:47:35 +00:00

Kernel: Stop eagerly loading entire executables

We were forced to do this because the page fault code would fall apart
when trying to generate a backtrace for a non-current thread.

This issue has been fixed for a while now, so let's go back to lazily
loading executable pages which should make everything a little better.
This commit is contained in:
Andreas Kling 2019-08-15 10:29:44 +02:00
parent eaa9cf58f5
commit 77737be7b3
3 changed files with 0 additions and 7 deletions

View file

@ -361,10 +361,6 @@ int Process::do_exec(String path, Vector<String> arguments, Vector<String> envir
ASSERT(success);
}
#ifdef EXPENSIVE_USERSPACE_STACKS
region->page_in();
#endif
OwnPtr<ELFLoader> loader;
{
// Okay, here comes the sleight of hand, pay close attention..