Explorar o código

Kernel: Give a name to the Master TLS region allocation

Itamar %!s(int64=4) %!d(string=hai) anos
pai
achega
373e8bcbc7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Kernel/Syscalls/mmap.cpp

+ 1 - 1
Kernel/Syscalls/mmap.cpp

@@ -619,7 +619,7 @@ KResultOr<FlatPtr> Process::sys$allocate_tls(size_t size)
     if (!range.has_value())
         return ENOMEM;
 
-    auto region_or_error = space().allocate_region(range.value(), String(), PROT_READ | PROT_WRITE);
+    auto region_or_error = space().allocate_region(range.value(), String("Master TLS"), PROT_READ | PROT_WRITE);
     if (region_or_error.is_error())
         return region_or_error.error().error();