Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2631)

Unified Diff: base/allocator/allocator_shim_override_ucrt_symbols_win.h

Issue 2697123007: base: Add support for malloc zones to the allocator shim (Closed)
Patch Set: Windows compile error. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/allocator/allocator_shim_override_ucrt_symbols_win.h
diff --git a/base/allocator/allocator_shim_override_ucrt_symbols_win.h b/base/allocator/allocator_shim_override_ucrt_symbols_win.h
index b8d0d91ff57d6f4a5bac5bcf912c839ab12d580b..9fb7d067f47a5b3f96036725ecd98b5e27c72152 100644
--- a/base/allocator/allocator_shim_override_ucrt_symbols_win.h
+++ b/base/allocator/allocator_shim_override_ucrt_symbols_win.h
@@ -48,19 +48,19 @@ int _query_new_mode() {
// These symbols override the CRT's implementation of the same functions.
__declspec(restrict) void* malloc(size_t size) {
- return ShimMalloc(size);
+ return ShimMalloc(size, nullptr);
}
void free(void* ptr) {
- ShimFree(ptr);
+ ShimFree(ptr, nullptr);
}
__declspec(restrict) void* realloc(void* ptr, size_t size) {
- return ShimRealloc(ptr, size);
+ return ShimRealloc(ptr, size, nullptr);
}
__declspec(restrict) void* calloc(size_t n, size_t size) {
- return ShimCalloc(n, size);
+ return ShimCalloc(n, size, nullptr);
}
// The symbols

Powered by Google App Engine
This is Rietveld 408576698