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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 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
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 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "platform/heap/ThreadState.h" 31 #include "platform/heap/ThreadState.h"
32 32
33 #include <v8.h>
34 #include <memory>
33 #include "base/trace_event/process_memory_dump.h" 35 #include "base/trace_event/process_memory_dump.h"
34 #include "platform/Histogram.h" 36 #include "platform/Histogram.h"
35 #include "platform/RuntimeEnabledFeatures.h" 37 #include "platform/RuntimeEnabledFeatures.h"
36 #include "platform/ScriptForbiddenScope.h" 38 #include "platform/ScriptForbiddenScope.h"
37 #include "platform/heap/BlinkGCMemoryDumpProvider.h" 39 #include "platform/heap/BlinkGCMemoryDumpProvider.h"
38 #include "platform/heap/CallbackStack.h" 40 #include "platform/heap/CallbackStack.h"
39 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
40 #include "platform/heap/Heap.h" 42 #include "platform/heap/Heap.h"
41 #include "platform/heap/HeapCompact.h" 43 #include "platform/heap/HeapCompact.h"
42 #include "platform/heap/PagePool.h" 44 #include "platform/heap/PagePool.h"
43 #include "platform/heap/SafePoint.h" 45 #include "platform/heap/SafePoint.h"
44 #include "platform/heap/Visitor.h" 46 #include "platform/heap/Visitor.h"
45 #include "platform/instrumentation/tracing/TraceEvent.h" 47 #include "platform/instrumentation/tracing/TraceEvent.h"
46 #include "platform/instrumentation/tracing/web_memory_allocator_dump.h" 48 #include "platform/instrumentation/tracing/web_memory_allocator_dump.h"
47 #include "platform/instrumentation/tracing/web_process_memory_dump.h" 49 #include "platform/instrumentation/tracing/web_process_memory_dump.h"
48 #include "public/platform/Platform.h" 50 #include "public/platform/Platform.h"
49 #include "public/platform/WebScheduler.h" 51 #include "public/platform/WebScheduler.h"
50 #include "public/platform/WebThread.h" 52 #include "public/platform/WebThread.h"
51 #include "public/platform/WebTraceLocation.h" 53 #include "public/platform/WebTraceLocation.h"
52 #include "wtf/CurrentTime.h" 54 #include "wtf/CurrentTime.h"
53 #include "wtf/DataLog.h" 55 #include "wtf/DataLog.h"
54 #include "wtf/PtrUtil.h" 56 #include "wtf/PtrUtil.h"
55 #include "wtf/StackUtil.h" 57 #include "wtf/StackUtil.h"
56 #include "wtf/ThreadingPrimitives.h" 58 #include "wtf/ThreadingPrimitives.h"
57 #include "wtf/allocator/Partitions.h" 59 #include "wtf/allocator/Partitions.h"
58 #include <memory>
59 #include <v8.h>
60 60
61 #if OS(WIN) 61 #if OS(WIN)
62 #include <stddef.h> 62 #include <stddef.h>
63 #include <windows.h> 63 #include <windows.h>
64 #include <winnt.h> 64 #include <winnt.h>
65 #endif 65 #endif
66 66
67 #if defined(MEMORY_SANITIZER) 67 #if defined(MEMORY_SANITIZER)
68 #include <sanitizer/msan_interface.h> 68 #include <sanitizer/msan_interface.h>
69 #endif 69 #endif
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, 1546 collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep,
1547 BlinkGC::ForcedGC); 1547 BlinkGC::ForcedGC);
1548 size_t liveObjects = heap().heapStats().markedObjectSize(); 1548 size_t liveObjects = heap().heapStats().markedObjectSize();
1549 if (liveObjects == previousLiveObjects) 1549 if (liveObjects == previousLiveObjects)
1550 break; 1550 break;
1551 previousLiveObjects = liveObjects; 1551 previousLiveObjects = liveObjects;
1552 } 1552 }
1553 } 1553 }
1554 1554
1555 } // namespace blink 1555 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.h ('k') | third_party/WebKit/Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698