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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 } | 749 } |
750 | 750 |
751 setGCState(PreciseGCScheduled); | 751 setGCState(PreciseGCScheduled); |
752 } | 752 } |
753 | 753 |
754 void ThreadState::setGCState(GCState gcState) | 754 void ThreadState::setGCState(GCState gcState) |
755 { | 755 { |
756 switch (gcState) { | 756 switch (gcState) { |
757 case NoGCScheduled: | 757 case NoGCScheduled: |
758 checkThread(); | 758 checkThread(); |
759 RELEASE_ASSERT(m_gcState == Sweeping || m_gcState == SweepingAndIdleGCSc
heduled); | 759 RELEASE_ASSERT(m_gcState == StoppingOtherThreads || m_gcState == Sweepin
g || m_gcState == SweepingAndIdleGCScheduled); |
760 break; | 760 break; |
761 case IdleGCScheduled: | 761 case IdleGCScheduled: |
762 case PreciseGCScheduled: | 762 case PreciseGCScheduled: |
763 case GCScheduledForTesting: | 763 case GCScheduledForTesting: |
764 checkThread(); | 764 checkThread(); |
765 RELEASE_ASSERT(m_gcState == NoGCScheduled || m_gcState == IdleGCSchedule
d || m_gcState == PreciseGCScheduled || m_gcState == GCScheduledForTesting || m_
gcState == StoppingOtherThreads || m_gcState == SweepingAndPreciseGCScheduled); | 765 RELEASE_ASSERT(m_gcState == NoGCScheduled || m_gcState == IdleGCSchedule
d || m_gcState == PreciseGCScheduled || m_gcState == GCScheduledForTesting || m_
gcState == StoppingOtherThreads || m_gcState == SweepingAndPreciseGCScheduled); |
766 completeSweep(); | 766 completeSweep(); |
767 break; | 767 break; |
768 case StoppingOtherThreads: | 768 case StoppingOtherThreads: |
769 checkThread(); | 769 checkThread(); |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 json->beginArray(it->key.ascii().data()); | 1265 json->beginArray(it->key.ascii().data()); |
1266 for (size_t age = 0; age <= maxHeapObjectAge; ++age) | 1266 for (size_t age = 0; age <= maxHeapObjectAge; ++age) |
1267 json->pushInteger(it->value.ages[age]); | 1267 json->pushInteger(it->value.ages[age]); |
1268 json->endArray(); | 1268 json->endArray(); |
1269 } | 1269 } |
1270 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink_gc"), s
tatsName, this, json.release()); | 1270 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink_gc"), s
tatsName, this, json.release()); |
1271 } | 1271 } |
1272 #endif | 1272 #endif |
1273 | 1273 |
1274 } // namespace blink | 1274 } // namespace blink |
OLD | NEW |