OLD | NEW |
---|---|
1 // Copyright (c) 2010 Google Inc. | 1 // Copyright (c) 2010 Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1173 | 1173 |
1174 return return_value; | 1174 return return_value; |
1175 } | 1175 } |
1176 | 1176 |
1177 | 1177 |
1178 // | 1178 // |
1179 // MinidumpMemoryRegion | 1179 // MinidumpMemoryRegion |
1180 // | 1180 // |
1181 | 1181 |
1182 | 1182 |
1183 uint32_t MinidumpMemoryRegion::max_bytes_ = 1024 * 1024; // 1MB | 1183 uint32_t MinidumpMemoryRegion::max_bytes_ = 2 * 1024 * 1024; // 1MB |
Mark Mentovai
2016/04/14 19:58:13
// 2MB
| |
1184 | 1184 |
1185 | 1185 |
1186 MinidumpMemoryRegion::MinidumpMemoryRegion(Minidump* minidump) | 1186 MinidumpMemoryRegion::MinidumpMemoryRegion(Minidump* minidump) |
1187 : MinidumpObject(minidump), | 1187 : MinidumpObject(minidump), |
1188 descriptor_(NULL), | 1188 descriptor_(NULL), |
1189 memory_(NULL) { | 1189 memory_(NULL) { |
1190 } | 1190 } |
1191 | 1191 |
1192 | 1192 |
1193 MinidumpMemoryRegion::~MinidumpMemoryRegion() { | 1193 MinidumpMemoryRegion::~MinidumpMemoryRegion() { |
(...skipping 3671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4865 return NULL; | 4865 return NULL; |
4866 } | 4866 } |
4867 | 4867 |
4868 *stream = new_stream.release(); | 4868 *stream = new_stream.release(); |
4869 info->stream = *stream; | 4869 info->stream = *stream; |
4870 return *stream; | 4870 return *stream; |
4871 } | 4871 } |
4872 | 4872 |
4873 | 4873 |
4874 } // namespace google_breakpad | 4874 } // namespace google_breakpad |
OLD | NEW |