| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "public/platform/WebMemoryAllocatorDump.h" | 44 #include "public/platform/WebMemoryAllocatorDump.h" |
| 45 #include "public/platform/WebProcessMemoryDump.h" | 45 #include "public/platform/WebProcessMemoryDump.h" |
| 46 #include "wtf/Assertions.h" | 46 #include "wtf/Assertions.h" |
| 47 #include "wtf/DataLog.h" | 47 #include "wtf/DataLog.h" |
| 48 #include "wtf/LeakAnnotations.h" | 48 #include "wtf/LeakAnnotations.h" |
| 49 #include "wtf/MainThread.h" | 49 #include "wtf/MainThread.h" |
| 50 #include "wtf/Partitions.h" | 50 #include "wtf/Partitions.h" |
| 51 | 51 |
| 52 namespace blink { | 52 namespace blink { |
| 53 | 53 |
| 54 HeapAllocHooks::AllocationHook* HeapAllocHooks::m_allocationHook = nullptr; |
| 55 HeapAllocHooks::FreeHook* HeapAllocHooks::m_freeHook = nullptr; |
| 56 |
| 54 class GCForbiddenScope final { | 57 class GCForbiddenScope final { |
| 55 DISALLOW_NEW(); | 58 DISALLOW_NEW(); |
| 56 public: | 59 public: |
| 57 explicit GCForbiddenScope(ThreadState* state) | 60 explicit GCForbiddenScope(ThreadState* state) |
| 58 : m_state(state) | 61 : m_state(state) |
| 59 { | 62 { |
| 60 // Prevent nested collectGarbage() invocations. | 63 // Prevent nested collectGarbage() invocations. |
| 61 m_state->enterGCForbiddenScope(); | 64 m_state->enterGCForbiddenScope(); |
| 62 } | 65 } |
| 63 | 66 |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 size_t Heap::s_wrapperCount = 0; | 726 size_t Heap::s_wrapperCount = 0; |
| 724 size_t Heap::s_wrapperCountAtLastGC = 0; | 727 size_t Heap::s_wrapperCountAtLastGC = 0; |
| 725 size_t Heap::s_collectedWrapperCount = 0; | 728 size_t Heap::s_collectedWrapperCount = 0; |
| 726 size_t Heap::s_partitionAllocSizeAtLastGC = 0; | 729 size_t Heap::s_partitionAllocSizeAtLastGC = 0; |
| 727 double Heap::s_estimatedMarkingTimePerByte = 0.0; | 730 double Heap::s_estimatedMarkingTimePerByte = 0.0; |
| 728 #if ENABLE(ASSERT) | 731 #if ENABLE(ASSERT) |
| 729 uint16_t Heap::s_gcGeneration = 0; | 732 uint16_t Heap::s_gcGeneration = 0; |
| 730 #endif | 733 #endif |
| 731 | 734 |
| 732 } // namespace blink | 735 } // namespace blink |
| OLD | NEW |