| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |