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

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

Issue 1305383006: Oilpan: Unship CSSValues and AnimatableValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/graphics/filters/FilterOperations.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 919
920 #undef VERIFY_STATE_TRANSITION 920 #undef VERIFY_STATE_TRANSITION
921 921
922 ThreadState::GCState ThreadState::gcState() const 922 ThreadState::GCState ThreadState::gcState() const
923 { 923 {
924 return m_gcState; 924 return m_gcState;
925 } 925 }
926 926
927 void ThreadState::runScheduledGC(StackState stackState) 927 void ThreadState::runScheduledGC(StackState stackState)
928 { 928 {
929 Heap::reportMemoryUsageForTracing();
930
929 ASSERT(checkThread()); 931 ASSERT(checkThread());
930 if (stackState != NoHeapPointersOnStack) 932 if (stackState != NoHeapPointersOnStack)
931 return; 933 return;
932 934
933 // If a safe point is entered while initiating a GC, we clearly do 935 // If a safe point is entered while initiating a GC, we clearly do
934 // not want to do another as part that -- the safe point is only 936 // not want to do another as part that -- the safe point is only
935 // entered after checking if a scheduled GC ought to run first. 937 // entered after checking if a scheduled GC ought to run first.
936 // Prevent that from happening by marking GCs as forbidden while 938 // Prevent that from happening by marking GCs as forbidden while
937 // one is initiated and later running. 939 // one is initiated and later running.
938 if (isGCForbidden()) 940 if (isGCForbidden())
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 json->beginArray(it->key.ascii().data()); 1609 json->beginArray(it->key.ascii().data());
1608 for (size_t age = 0; age <= maxHeapObjectAge; ++age) 1610 for (size_t age = 0; age <= maxHeapObjectAge; ++age)
1609 json->pushInteger(it->value.ages[age]); 1611 json->pushInteger(it->value.ages[age]);
1610 json->endArray(); 1612 json->endArray();
1611 } 1613 }
1612 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink_gc"), s tatsName, this, json.release()); 1614 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink_gc"), s tatsName, this, json.release());
1613 } 1615 }
1614 #endif 1616 #endif
1615 1617
1616 } // namespace blink 1618 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FilterOperations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698