Mark Mentovai a685942342 MachMessageServer: invert the request buffer allocation logic.
The existing implementation used the same logic as is found in
mach_msg_server(), but that logic seems incorrect. When the caller wants
to retry a mach_msg() receive of a too-large message that returns
MACH_RCV_TOO_LARGE, there’s no harm in attempting the receive with a
larger buffer initially. On the other hand, if the caller does not want
to retry such mach_msg() receive attempts, it’s an indication that the
caller is expecting to be intolerant of too-large messages, and there’s
no need to attempt the receive with a buffer any larger than requested.

TEST=util_test
R=rsesek@chromium.org

Review URL: https://codereview.chromium.org/753363003
2014-11-25 15:04:31 -05:00
2014-07-30 23:24:58 -04:00
2014-09-12 12:13:27 -04:00
2014-07-30 23:24:58 -04:00
2014-07-30 23:24:58 -04:00
2014-07-30 23:24:58 -04:00
2014-07-30 23:24:58 -04:00
2014-10-02 17:09:37 -04:00
2014-11-25 14:56:05 -05:00
2014-07-30 23:24:58 -04:00
2014-07-30 23:24:58 -04:00
Description
A crash-reporting system
Apache-2.0
Languages
C++ 92.6%
Objective-C++ 2.5%
C 2%
Python 1.7%
Assembly 0.9%
Other 0.3%