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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2882513003: Allocate memory in smaller chunks for chrome://memory-exhaust/ (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 2e952fd5a26a3ca6dfcdb4ca3cb40252a7a6939b..7cf21c4d5b70dbc343a00869155350bdb153a07d 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -775,7 +775,7 @@ double ConvertToBlinkTime(const base::TimeTicks& time_ticks) {
NOINLINE void ExhaustMemory() {
volatile void* ptr = nullptr;
do {
- ptr = malloc(0x10000000);
+ ptr = malloc(0x1000000);
base::debug::Alias(&ptr);
} while (ptr);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698