| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 s_markedObjectSizeAtLastCompleteSweep = 0; | 168 s_markedObjectSizeAtLastCompleteSweep = 0; |
| 169 s_wrapperCount = 0; | 169 s_wrapperCount = 0; |
| 170 s_wrapperCountAtLastGC = 0; | 170 s_wrapperCountAtLastGC = 0; |
| 171 s_collectedWrapperCount = 0; | 171 s_collectedWrapperCount = 0; |
| 172 s_partitionAllocSizeAtLastGC = WTF::Partitions::totalSizeOfCommittedPages(); | 172 s_partitionAllocSizeAtLastGC = WTF::Partitions::totalSizeOfCommittedPages(); |
| 173 s_estimatedMarkingTimePerByte = 0.0; | 173 s_estimatedMarkingTimePerByte = 0.0; |
| 174 | 174 |
| 175 GCInfoTable::init(); | 175 GCInfoTable::init(); |
| 176 | 176 |
| 177 if (Platform::current() && Platform::current()->currentThread()) | 177 if (Platform::current() && Platform::current()->currentThread()) |
| 178 Platform::current()->registerMemoryDumpProvider(BlinkGCMemoryDumpProvide
r::instance()); | 178 Platform::current()->registerMemoryDumpProvider(BlinkGCMemoryDumpProvide
r::instance(), "BlinkGC"); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void Heap::shutdown() | 181 void Heap::shutdown() |
| 182 { | 182 { |
| 183 if (Platform::current() && Platform::current()->currentThread()) | 183 if (Platform::current() && Platform::current()->currentThread()) |
| 184 Platform::current()->unregisterMemoryDumpProvider(BlinkGCMemoryDumpProvi
der::instance()); | 184 Platform::current()->unregisterMemoryDumpProvider(BlinkGCMemoryDumpProvi
der::instance()); |
| 185 s_shutdownCalled = true; | 185 s_shutdownCalled = true; |
| 186 ThreadState::shutdownHeapIfNecessary(); | 186 ThreadState::shutdownHeapIfNecessary(); |
| 187 } | 187 } |
| 188 | 188 |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 size_t Heap::s_objectSizeAtLastGC = 0; | 791 size_t Heap::s_objectSizeAtLastGC = 0; |
| 792 size_t Heap::s_markedObjectSize = 0; | 792 size_t Heap::s_markedObjectSize = 0; |
| 793 size_t Heap::s_markedObjectSizeAtLastCompleteSweep = 0; | 793 size_t Heap::s_markedObjectSizeAtLastCompleteSweep = 0; |
| 794 size_t Heap::s_wrapperCount = 0; | 794 size_t Heap::s_wrapperCount = 0; |
| 795 size_t Heap::s_wrapperCountAtLastGC = 0; | 795 size_t Heap::s_wrapperCountAtLastGC = 0; |
| 796 size_t Heap::s_collectedWrapperCount = 0; | 796 size_t Heap::s_collectedWrapperCount = 0; |
| 797 size_t Heap::s_partitionAllocSizeAtLastGC = 0; | 797 size_t Heap::s_partitionAllocSizeAtLastGC = 0; |
| 798 double Heap::s_estimatedMarkingTimePerByte = 0.0; | 798 double Heap::s_estimatedMarkingTimePerByte = 0.0; |
| 799 | 799 |
| 800 } // namespace blink | 800 } // namespace blink |
| OLD | NEW |