summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-06-11 12:51:05 -0700
committerGravatar Yuri Kunde Schlesner2017-06-11 16:34:13 -0700
commitd8f6000f5434b94412ac5738f8f72ba7ad9f8497 (patch)
treea65209743e49853ff898fa0c5bb2d3192ce0446c
parentExternals: Upgrade bundled Boost to 1.64 (diff)
downloadyuzu-d8f6000f5434b94412ac5738f8f72ba7ad9f8497.tar.gz
yuzu-d8f6000f5434b94412ac5738f8f72ba7ad9f8497.tar.xz
yuzu-d8f6000f5434b94412ac5738f8f72ba7ad9f8497.zip
Kernel/IPC: Use boost::small_vector for HLE context objects
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/hle_ipc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index 1022dece8..cbb109d8f 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -7,6 +7,7 @@
7#include <array> 7#include <array>
8#include <memory> 8#include <memory>
9#include <vector> 9#include <vector>
10#include <boost/container/small_vector.hpp>
10#include "common/common_types.h" 11#include "common/common_types.h"
11#include "common/swap.h" 12#include "common/swap.h"
12#include "core/hle/ipc.h" 13#include "core/hle/ipc.h"
@@ -127,7 +128,8 @@ private:
127 128
128 std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf; 129 std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf;
129 SharedPtr<ServerSession> session; 130 SharedPtr<ServerSession> session;
130 std::vector<SharedPtr<Object>> request_handles; 131 // TODO(yuriks): Check common usage of this and optimize size accordingly
132 boost::container::small_vector<SharedPtr<Object>, 8> request_handles;
131}; 133};
132 134
133} // namespace Kernel 135} // namespace Kernel