OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |