Kernel: Make the "entire executable" region shared

This makes Region::clone() do the right thing with it on fork().
This commit is contained in:
Andreas Kling 2020-03-02 06:12:27 +01:00
parent 5c2a296a49
commit 0acac186fb

View file

@ -858,6 +858,8 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
ASSERT(region); ASSERT(region);
region->set_shared(true);
Region* master_tls_region { nullptr }; Region* master_tls_region { nullptr };
size_t master_tls_size = 0; size_t master_tls_size = 0;
size_t master_tls_alignment = 0; size_t master_tls_alignment = 0;