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

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

Issue 2178393002: Fix BlinkGC triggering so it is more sensitive to PartitionAlloc only allocations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use MemoryPressureGC Created 4 years, 4 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/ThreadState.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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 bool shouldForceMemoryPressureGC(); 570 bool shouldForceMemoryPressureGC();
571 571
572 // Returns true if shouldForceMemoryPressureGC() held and a 572 // Returns true if shouldForceMemoryPressureGC() held and a
573 // conservative GC was performed to handle the emergency. 573 // conservative GC was performed to handle the emergency.
574 bool forceMemoryPressureGCIfNeeded(); 574 bool forceMemoryPressureGCIfNeeded();
575 575
576 size_t estimatedLiveSize(size_t currentSize, size_t sizeAtLastGC); 576 size_t estimatedLiveSize(size_t currentSize, size_t sizeAtLastGC);
577 size_t totalMemorySize(); 577 size_t totalMemorySize();
578 double heapGrowingRate(); 578 double heapGrowingRate();
579 double partitionAllocGrowingRate(); 579 double partitionAllocGrowingRate();
580 bool judgeGCThreshold(size_t allocatedObjectSizeThreshold, double heapGrowin gRateThreshold); 580 bool judgeGCThreshold(size_t allocatedObjectSizeThreshold, size_t totalMemor ySizeThreshold, double heapGrowingRateThreshold);
581 581
582 void runScheduledGC(BlinkGC::StackState); 582 void runScheduledGC(BlinkGC::StackState);
583 583
584 void eagerSweep(); 584 void eagerSweep();
585 585
586 #if defined(ADDRESS_SANITIZER) 586 #if defined(ADDRESS_SANITIZER)
587 void poisonEagerArena(); 587 void poisonEagerArena();
588 void poisonAllHeaps(); 588 void poisonAllHeaps();
589 #endif 589 #endif
590 590
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 706
707 template<> class ThreadStateFor<AnyThread> { 707 template<> class ThreadStateFor<AnyThread> {
708 STATIC_ONLY(ThreadStateFor); 708 STATIC_ONLY(ThreadStateFor);
709 public: 709 public:
710 static ThreadState* state() { return ThreadState::current(); } 710 static ThreadState* state() { return ThreadState::current(); }
711 }; 711 };
712 712
713 } // namespace blink 713 } // namespace blink
714 714
715 #endif // ThreadState_h 715 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698