There was an error fetching the commit references. Please try again later.
kernel/hle_ipc: Convert std::shared_ptr IPC header instances to std::optional
There's no real need to use a shared lifetime here, since we don't actually expose them to anything else. This is also kind of an unnecessary use of the heap given the objects themselves are so small; small enough, in fact that changing over to optionals actually reduces the overall size of the HLERequestContext struct (818 bytes to 808 bytes).
Showing
- src/core/hle/ipc_helpers.h 1 addition, 1 deletionsrc/core/hle/ipc_helpers.h
- src/core/hle/kernel/hle_ipc.cpp 6 additions, 8 deletionssrc/core/hle/kernel/hle_ipc.cpp
- src/core/hle/kernel/hle_ipc.h 8 additions, 7 deletionssrc/core/hle/kernel/hle_ipc.h
- src/core/hle/kernel/server_session.cpp 32 additions, 31 deletionssrc/core/hle/kernel/server_session.cpp
Loading
Please register or sign in to comment