OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_SYSTEM_LIMITS_H_ | |
6 #define MOJO_SYSTEM_LIMITS_H_ | |
7 | |
8 namespace mojo { | |
9 namespace system { | |
10 | |
11 // Maximum of open (Mojo) handles. | |
12 // TODO(vtl): This doesn't count "live" handles, some of which may live in | |
13 // messages. | |
14 const size_t kMaxHandleTableSize = 1000000; | |
15 | |
16 const size_t kMaxWaitManyNumHandles = 256; | |
darin (slow to review)
2013/09/25 06:06:07
In practice, I think we will quickly exceed this l
viettrungluu
2013/09/25 18:22:16
Okay. (256 was a low-ish number that I chose arbit
| |
17 | |
18 const size_t kMaxMessageNumBytes = 4 * 1024 * 1024; | |
19 | |
20 const size_t kMaxMessageNumHandles = 256; | |
darin (slow to review)
2013/09/25 06:06:07
i'd be tempted to also allow this to be larger unl
viettrungluu
2013/09/25 18:22:16
Ditto.
What do you think of 1024 as the limit for
| |
21 | |
22 } // namespace system | |
23 } // namespace mojo | |
24 | |
25 #endif // MOJO_SYSTEM_LIMITS_H_ | |
OLD | NEW |