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

Side by Side Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 1741833002: Reduce ephemeron stack size reservation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const-ify Created 4 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/heap/CallbackStack.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 { 103 {
104 s_heapDoesNotContainCache->flush(); 104 s_heapDoesNotContainCache->flush();
105 } 105 }
106 106
107 void Heap::init() 107 void Heap::init()
108 { 108 {
109 ThreadState::init(); 109 ThreadState::init();
110 s_markingStack = new CallbackStack(); 110 s_markingStack = new CallbackStack();
111 s_postMarkingCallbackStack = new CallbackStack(); 111 s_postMarkingCallbackStack = new CallbackStack();
112 s_globalWeakCallbackStack = new CallbackStack(); 112 s_globalWeakCallbackStack = new CallbackStack();
113 s_ephemeronStack = new CallbackStack(); 113 // Use smallest supported block size for ephemerons.
114 s_ephemeronStack = new CallbackStack(CallbackStack::kMinimalBlockSize);
114 s_heapDoesNotContainCache = new HeapDoesNotContainCache(); 115 s_heapDoesNotContainCache = new HeapDoesNotContainCache();
115 s_freePagePool = new FreePagePool(); 116 s_freePagePool = new FreePagePool();
116 s_orphanedPagePool = new OrphanedPagePool(); 117 s_orphanedPagePool = new OrphanedPagePool();
117 s_allocatedSpace = 0; 118 s_allocatedSpace = 0;
118 s_allocatedObjectSize = 0; 119 s_allocatedObjectSize = 0;
119 s_objectSizeAtLastGC = 0; 120 s_objectSizeAtLastGC = 0;
120 s_markedObjectSize = 0; 121 s_markedObjectSize = 0;
121 s_markedObjectSizeAtLastCompleteSweep = 0; 122 s_markedObjectSizeAtLastCompleteSweep = 0;
122 s_wrapperCount = 0; 123 s_wrapperCount = 0;
123 s_wrapperCountAtLastGC = 0; 124 s_wrapperCountAtLastGC = 0;
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 size_t Heap::s_wrapperCountAtLastGC = 0; 688 size_t Heap::s_wrapperCountAtLastGC = 0;
688 size_t Heap::s_collectedWrapperCount = 0; 689 size_t Heap::s_collectedWrapperCount = 0;
689 size_t Heap::s_partitionAllocSizeAtLastGC = 0; 690 size_t Heap::s_partitionAllocSizeAtLastGC = 0;
690 double Heap::s_estimatedMarkingTimePerByte = 0.0; 691 double Heap::s_estimatedMarkingTimePerByte = 0.0;
691 bool Heap::s_isLowEndDevice = false; 692 bool Heap::s_isLowEndDevice = false;
692 #if ENABLE(ASSERT) 693 #if ENABLE(ASSERT)
693 uint16_t Heap::s_gcGeneration = 0; 694 uint16_t Heap::s_gcGeneration = 0;
694 #endif 695 #endif
695 696
696 } // namespace blink 697 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/CallbackStack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698