Changeset 192450 in webkit
- Timestamp:
- Nov 13, 2015 4:40:54 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r192443 r192450 1 2015-11-13 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r192401. 4 https://bugs.webkit.org/show_bug.cgi?id=151282 5 6 "caused crashes on animometer" (Requested by thorton on 7 #webkit). 8 9 Reverted changeset: 10 11 "Restore CodeBlock jettison code I accidentally removed" 12 https://bugs.webkit.org/show_bug.cgi?id=151241 13 http://trac.webkit.org/changeset/192401 14 1 15 2015-11-13 Andreas Kling <akling@apple.com> 2 16 -
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r192401 r192450 81 81 82 82 namespace 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 and92 // 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 }105 83 106 84 const ClassInfo CodeBlock::s_info = { … … 2440 2418 bool CodeBlock::shouldJettisonDueToOldAge() 2441 2419 { 2442 if (Heap::isMarked(this)) 2443 return false; 2444 2445 if (timeSinceCreation() < timeToLive(jitType())) 2446 return false; 2447 2448 return true; 2420 return false; 2449 2421 } 2450 2422
Note: See TracChangeset
for help on using the changeset viewer.