| 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 void visitAsanFakeStackForPointer(Visitor*, Address); | 626 void visitAsanFakeStackForPointer(Visitor*, Address); |
| 627 | 627 |
| 628 // Visit all persistents allocated on this thread. | 628 // Visit all persistents allocated on this thread. |
| 629 void visitPersistents(Visitor*); | 629 void visitPersistents(Visitor*); |
| 630 | 630 |
| 631 #if ENABLE(GC_PROFILE_MARKING) | 631 #if ENABLE(GC_PROFILE_MARKING) |
| 632 const GCInfo* findGCInfo(Address); | 632 const GCInfo* findGCInfo(Address); |
| 633 static const GCInfo* findGCInfoFromAllThreads(Address); | 633 static const GCInfo* findGCInfoFromAllThreads(Address); |
| 634 #endif | 634 #endif |
| 635 | 635 |
| 636 #if ENABLE(GC_PROFILE_FREE_LIST) |
| 637 void snapshotFreeListIfNecessary(); |
| 638 void snapshotFreeList(); |
| 639 #endif |
| 640 |
| 636 #if ENABLE(GC_PROFILE_HEAP) | 641 #if ENABLE(GC_PROFILE_HEAP) |
| 637 struct SnapshotInfo { | 642 struct SnapshotInfo { |
| 638 ThreadState* state; | 643 ThreadState* state; |
| 639 | 644 |
| 640 size_t freeSize; | 645 size_t freeSize; |
| 641 size_t pageCount; | 646 size_t pageCount; |
| 642 | 647 |
| 643 // Map from base-classes to a snapshot class-ids (used as index below). | 648 // Map from base-classes to a snapshot class-ids (used as index below). |
| 644 HashMap<const GCInfo*, size_t> classTags; | 649 HashMap<const GCInfo*, size_t> classTags; |
| 645 | 650 |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 // HeapPage header. We use some of the bits to determine | 906 // HeapPage header. We use some of the bits to determine |
| 902 // whether the page is part of a terminting thread or | 907 // whether the page is part of a terminting thread or |
| 903 // if the page is traced after being terminated (orphaned). | 908 // if the page is traced after being terminated (orphaned). |
| 904 uintptr_t m_terminating : 1; | 909 uintptr_t m_terminating : 1; |
| 905 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 | 910 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 |
| 906 }; | 911 }; |
| 907 | 912 |
| 908 } // namespace blink | 913 } // namespace blink |
| 909 | 914 |
| 910 #endif // ThreadState_h | 915 #endif // ThreadState_h |
| OLD | NEW |