kernel/process: Move name and system context to the bottom of the member list
These aren't directly important or commonly used within the process, so we can move these to the bottom to allow everything else to be more likely to be within a cache line.
This commit is contained in:
parent
52e83f0d5c
commit
73bb87c06b
1 changed files with 6 additions and 6 deletions
|
@ -382,12 +382,6 @@ private:
|
||||||
/// List of threads waiting for a condition variable
|
/// List of threads waiting for a condition variable
|
||||||
std::unordered_map<VAddr, std::list<std::shared_ptr<Thread>>> cond_var_threads;
|
std::unordered_map<VAddr, std::list<std::shared_ptr<Thread>>> cond_var_threads;
|
||||||
|
|
||||||
/// System context
|
|
||||||
Core::System& system;
|
|
||||||
|
|
||||||
/// Name of this process
|
|
||||||
std::string name;
|
|
||||||
|
|
||||||
/// Address of the top of the main thread's stack
|
/// Address of the top of the main thread's stack
|
||||||
VAddr main_thread_stack_top{};
|
VAddr main_thread_stack_top{};
|
||||||
|
|
||||||
|
@ -399,6 +393,12 @@ private:
|
||||||
|
|
||||||
/// Process total image size
|
/// Process total image size
|
||||||
std::size_t image_size{};
|
std::size_t image_size{};
|
||||||
|
|
||||||
|
/// Name of this process
|
||||||
|
std::string name;
|
||||||
|
|
||||||
|
/// System context
|
||||||
|
Core::System& system;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Kernel
|
} // namespace Kernel
|
||||||
|
|
Loading…
Reference in a new issue