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

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

Issue 2686533003: Move postGC out of CrossThreadPersistentRegion::LockScope (Closed)
Patch Set: fix 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/Heap.cpp » ('j') | 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 static Address allocate(size_t, bool eagerlySweep = false); 419 static Address allocate(size_t, bool eagerlySweep = false);
420 template <typename T> 420 template <typename T>
421 static Address reallocate(void* previous, size_t); 421 static Address reallocate(void* previous, size_t);
422 422
423 void processMarkingStack(Visitor*); 423 void processMarkingStack(Visitor*);
424 void postMarkingProcessing(Visitor*); 424 void postMarkingProcessing(Visitor*);
425 void globalWeakProcessing(Visitor*); 425 void globalWeakProcessing(Visitor*);
426 426
427 void preGC(); 427 void preGC();
428 void postGC(BlinkGC::GCType); 428 void postGC(BlinkGC::GCType);
429 void preSweep(BlinkGC::GCType);
429 430
430 // Conservatively checks whether an address is a pointer in any of the 431 // Conservatively checks whether an address is a pointer in any of the
431 // thread heaps. If so marks the object pointed to as live. 432 // thread heaps. If so marks the object pointed to as live.
432 Address checkAndMarkPointer(Visitor*, Address); 433 Address checkAndMarkPointer(Visitor*, Address);
433 #if DCHECK_IS_ON() 434 #if DCHECK_IS_ON()
434 Address checkAndMarkPointer(Visitor*, 435 Address checkAndMarkPointer(Visitor*,
435 Address, 436 Address,
436 MarkedPointerCallbackForTesting); 437 MarkedPointerCallbackForTesting);
437 #endif 438 #endif
438 439
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 T** cell = reinterpret_cast<T**>(object); 696 T** cell = reinterpret_cast<T**>(object);
696 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell)) 697 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell))
697 *cell = nullptr; 698 *cell = nullptr;
698 } 699 }
699 700
700 } // namespace blink 701 } // namespace blink
701 702
702 #include "platform/heap/VisitorImpl.h" 703 #include "platform/heap/VisitorImpl.h"
703 704
704 #endif // Heap_h 705 #endif // Heap_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/Heap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698