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

Unified Diff: chrome/app/chrome_exe_main_win.cc

Issue 1825823002: Cleanup: LFH only needs to be enabled on XP/2003 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 9 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
« base/allocator/allocator_shim_win.cc ('K') | « base/process/memory_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_exe_main_win.cc
diff --git a/chrome/app/chrome_exe_main_win.cc b/chrome/app/chrome_exe_main_win.cc
index a180fd0f43370921adfe4761afe36044ceb40ac9..7139ba3d37463ac064be323d666c87751345e3c6 100644
--- a/chrome/app/chrome_exe_main_win.cc
+++ b/chrome/app/chrome_exe_main_win.cc
@@ -130,17 +130,6 @@ void EnableHighDPISupport() {
}
}
-void SwitchToLFHeap() {
- // Only needed on XP but harmless on other Windows flavors.
- auto crt_heap = _get_heap_handle();
- ULONG enable_LFH = 2;
- if (HeapSetInformation(reinterpret_cast<HANDLE>(crt_heap),
- HeapCompatibilityInformation,
- &enable_LFH, sizeof(enable_LFH))) {
- VLOG(1) << "Low fragmentation heap enabled.";
- }
-}
-
// Returns true if |command_line| contains a /prefetch:# argument where # is in
// [1, 8].
bool HasValidWindowsPrefetchArgument(const base::CommandLine& command_line) {
@@ -205,8 +194,6 @@ int main() {
crash_reporter::InitializeCrashpadWithEmbeddedHandler(process_type.empty(),
process_type);
- SwitchToLFHeap();
-
startup_metric_utils::RecordExeMainEntryPointTime(base::Time::Now());
// Signal Chrome Elf that Chrome has begun to start.
« base/allocator/allocator_shim_win.cc ('K') | « base/process/memory_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698