Index: third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md |
diff --git a/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md b/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md |
index e9815c3df46a9f0a835b1cbb33695668e251b8d5..8a7abc56a84ccd036835109a2e530d043d572ef2 100644 |
--- a/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md |
+++ b/third_party/WebKit/Source/platform/heap/BlinkGCAPIReference.md |
@@ -178,17 +178,10 @@ with a destructor. |
A pre-finalizer must have the following function signature: `void preFinalizer()`. You can change the function name. |
-A pre-finalizer must be registered in the constructor by using the following statement: |
-"`ThreadState::current()->registerPreFinalizer(this);`". |
- |
```c++ |
class YourClass : public GarbageCollectedFinalized<YourClass> { |
USING_PRE_FINALIZER(YourClass, dispose); |
public: |
- YourClass() |
- { |
- ThreadState::current()->registerPreFinalizer(this); |
- } |
void dispose() |
{ |
m_other->dispose(); // OK; you can touch other on-heap objects in a pre-finalizer. |