Ignore:
Timestamp:
Nov 13, 2015, 4:40:54 PM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r192401.
https://bugs.webkit.org/show_bug.cgi?id=151282

"caused crashes on animometer" (Requested by thorton on
#webkit).

Reverted changeset:

"Restore CodeBlock jettison code I accidentally removed"
https://bugs.webkit.org/show_bug.cgi?id=151241
http://trac.webkit.org/changeset/192401

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp

    r192401 r192450  
    8181
    8282namespace JSC {
    83 
    84 static std::chrono::milliseconds timeToLive(JITCode::JITType jitType)
    85 {
    86     switch (jitType) {
    87     case JITCode::InterpreterThunk:
    88         return std::chrono::duration_cast<std::chrono::milliseconds>(
    89             std::chrono::seconds(5));
    90     case JITCode::BaselineJIT:
    91         // Effectively 10 additional seconds, since BaselineJIT and
    92         // InterpreterThunk share a CodeBlock.
    93         return std::chrono::duration_cast<std::chrono::milliseconds>(
    94             std::chrono::seconds(15));
    95     case JITCode::DFGJIT:
    96         return std::chrono::duration_cast<std::chrono::milliseconds>(
    97             std::chrono::seconds(20));
    98     case JITCode::FTLJIT:
    99         return std::chrono::duration_cast<std::chrono::milliseconds>(
    100             std::chrono::seconds(60));
    101     default:
    102         return std::chrono::milliseconds::max();
    103     }
    104 }
    10583
    10684const ClassInfo CodeBlock::s_info = {
     
    24402418bool CodeBlock::shouldJettisonDueToOldAge()
    24412419{
    2442     if (Heap::isMarked(this))
    2443         return false;
    2444 
    2445     if (timeSinceCreation() < timeToLive(jitType()))
    2446         return false;
    2447 
    2448     return true;
     2420    return false;
    24492421}
    24502422
Note: See TracChangeset for help on using the changeset viewer.