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 1870503002: Making CSSValue Pool thread local (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing ASAN memory leaks in 2 unit tests Created 4 years, 8 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 517
518 void enterStaticReferenceRegistrationDisabledScope(); 518 void enterStaticReferenceRegistrationDisabledScope();
519 void leaveStaticReferenceRegistrationDisabledScope(); 519 void leaveStaticReferenceRegistrationDisabledScope();
520 #endif 520 #endif
521 521
522 void resetHeapCounters(); 522 void resetHeapCounters();
523 void increaseAllocatedObjectSize(size_t); 523 void increaseAllocatedObjectSize(size_t);
524 void decreaseAllocatedObjectSize(size_t); 524 void decreaseAllocatedObjectSize(size_t);
525 void increaseMarkedObjectSize(size_t); 525 void increaseMarkedObjectSize(size_t);
526 526
527 void callThreadShutdownHooks();
528
527 private: 529 private:
528 enum SnapshotType { 530 enum SnapshotType {
529 HeapSnapshot, 531 HeapSnapshot,
530 FreelistSnapshot 532 FreelistSnapshot
531 }; 533 };
532 534
533 ThreadState(); 535 ThreadState();
534 ~ThreadState(); 536 ~ThreadState();
535 537
536 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope(); 538 NO_SANITIZE_ADDRESS void copyStackUntilSafePointScope();
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 712
711 template<> class ThreadStateFor<AnyThread> { 713 template<> class ThreadStateFor<AnyThread> {
712 STATIC_ONLY(ThreadStateFor); 714 STATIC_ONLY(ThreadStateFor);
713 public: 715 public:
714 static ThreadState* state() { return ThreadState::current(); } 716 static ThreadState* state() { return ThreadState::current(); }
715 }; 717 };
716 718
717 } // namespace blink 719 } // namespace blink
718 720
719 #endif // ThreadState_h 721 #endif // ThreadState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698