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

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

Issue 2689473002: Remove ThreadState::collectGarbageForTerminatingThread (Closed)
Patch Set: temp 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 void resetHeapCounters(); 507 void resetHeapCounters();
508 void increaseAllocatedObjectSize(size_t); 508 void increaseAllocatedObjectSize(size_t);
509 void decreaseAllocatedObjectSize(size_t); 509 void decreaseAllocatedObjectSize(size_t);
510 void increaseMarkedObjectSize(size_t); 510 void increaseMarkedObjectSize(size_t);
511 511
512 v8::Isolate* isolate() const { return m_isolate; } 512 v8::Isolate* isolate() const { return m_isolate; }
513 513
514 BlinkGC::StackState stackState() const { return m_stackState; } 514 BlinkGC::StackState stackState() const { return m_stackState; }
515 515
516 void collectGarbage(BlinkGC::StackState, BlinkGC::GCType, BlinkGC::GCReason); 516 void collectGarbage(BlinkGC::StackState, BlinkGC::GCType, BlinkGC::GCReason);
517 void collectGarbageForTerminatingThread();
518 void collectAllGarbage(); 517 void collectAllGarbage();
519 518
520 // Register the pre-finalizer for the |self| object. The class T must have 519 // Register the pre-finalizer for the |self| object. The class T must have
521 // USING_PRE_FINALIZER(). 520 // USING_PRE_FINALIZER().
522 template <typename T> 521 template <typename T>
523 class PrefinalizerRegistration final { 522 class PrefinalizerRegistration final {
524 public: 523 public:
525 PrefinalizerRegistration(T* self) { 524 PrefinalizerRegistration(T* self) {
526 static_assert(sizeof(&T::invokePreFinalizer) > 0, 525 static_assert(sizeof(&T::invokePreFinalizer) > 0,
527 "USING_PRE_FINALIZER(T) must be defined."); 526 "USING_PRE_FINALIZER(T) must be defined.");
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 class ThreadStateFor<AnyThread> { 733 class ThreadStateFor<AnyThread> {
735 STATIC_ONLY(ThreadStateFor); 734 STATIC_ONLY(ThreadStateFor);
736 735
737 public: 736 public:
738 static ThreadState* state() { return ThreadState::current(); } 737 static ThreadState* state() { return ThreadState::current(); }
739 }; 738 };
740 739
741 } // namespace blink 740 } // namespace blink
742 741
743 #endif // ThreadState_h 742 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698