mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
Kernel: Don't take LexicalPath as argument
LexicalPath is a big and heavy class that's really meant as a helper for extracting parts of a path, not for storage or passing around. Instead, pass paths around as strings and use LexicalPath locally as needed.
This commit is contained in:
parent
bcabbbda8b
commit
ff8bf4db8d
4 changed files with 13 additions and 14 deletions
|
@ -60,7 +60,7 @@ int Process::sys$profiling_disable(pid_t pid)
|
|||
// We explicitly unlock here because we can't hold the lock when writing the coredump VFS
|
||||
lock.unlock();
|
||||
|
||||
auto coredump = CoreDump::create(*process, LexicalPath { String::format("/tmp/profiler_coredumps/%d", pid) });
|
||||
auto coredump = CoreDump::create(*process, String::formatted("/tmp/profiler_coredumps/%d", pid));
|
||||
coredump->write();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue