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

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

Issue 2687283002: Remove ParkThreadsScope (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
« 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 280 }
281 CallbackStack* globalWeakCallbackStack() const { 281 CallbackStack* globalWeakCallbackStack() const {
282 return m_globalWeakCallbackStack.get(); 282 return m_globalWeakCallbackStack.get();
283 } 283 }
284 CallbackStack* ephemeronStack() const { return m_ephemeronStack.get(); } 284 CallbackStack* ephemeronStack() const { return m_ephemeronStack.get(); }
285 285
286 void attach(ThreadState*); 286 void attach(ThreadState*);
287 void detach(ThreadState*); 287 void detach(ThreadState*);
288 void lockThreadAttachMutex(); 288 void lockThreadAttachMutex();
289 void unlockThreadAttachMutex(); 289 void unlockThreadAttachMutex();
290 bool park();
291 void resume();
292 290
293 void visitPersistentRoots(Visitor*); 291 void visitPersistentRoots(Visitor*);
294 void visitStackRoots(Visitor*); 292 void visitStackRoots(Visitor*);
295 void checkAndPark(ThreadState*, SafePointAwareMutexLocker*); 293 void checkAndPark(ThreadState*, SafePointAwareMutexLocker*);
296 void enterSafePoint(ThreadState*); 294 void enterSafePoint(ThreadState*);
297 void leaveSafePoint(ThreadState*, SafePointAwareMutexLocker*); 295 void leaveSafePoint(ThreadState*, SafePointAwareMutexLocker*);
298 296
299 // Add a weak pointer callback to the weak callback work list. General 297 // Add a weak pointer callback to the weak callback work list. General
300 // object pointer callbacks are added to a thread local weak callback work 298 // object pointer callbacks are added to a thread local weak callback work
301 // list and the callback is called on the thread that owns the object, with 299 // list and the callback is called on the thread that owns the object, with
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 T** cell = reinterpret_cast<T**>(object); 695 T** cell = reinterpret_cast<T**>(object);
698 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell)) 696 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell))
699 *cell = nullptr; 697 *cell = nullptr;
700 } 698 }
701 699
702 } // namespace blink 700 } // namespace blink
703 701
704 #include "platform/heap/VisitorImpl.h" 702 #include "platform/heap/VisitorImpl.h"
705 703
706 #endif // Heap_h 704 #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