Title: [195905] trunk/Source/_javascript_Core
- Revision
- 195905
- Author
- [email protected]
- Date
- 2016-01-30 12:48:11 -0800 (Sat, 30 Jan 2016)
Log Message
Shrink Heap::m_executables after cleaning it.
<https://webkit.org/b/153682>
Reviewed by Darin Adler.
The Heap::m_executables Vector was never shrunk down, despite sometimes
getting pretty huge (~500kB in my longest-running WebContent process.)
After GC has finished pruning unmarked Executables, shrink the Vector.
* heap/Heap.cpp:
(JSC::Heap::clearUnmarkedExecutables):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (195904 => 195905)
--- trunk/Source/_javascript_Core/ChangeLog 2016-01-30 20:10:18 UTC (rev 195904)
+++ trunk/Source/_javascript_Core/ChangeLog 2016-01-30 20:48:11 UTC (rev 195905)
@@ -1,3 +1,18 @@
+2016-01-30 Andreas Kling <[email protected]>
+
+ Shrink Heap::m_executables after cleaning it.
+ <https://webkit.org/b/153682>
+
+ Reviewed by Darin Adler.
+
+ The Heap::m_executables Vector was never shrunk down, despite sometimes
+ getting pretty huge (~500kB in my longest-running WebContent process.)
+
+ After GC has finished pruning unmarked Executables, shrink the Vector.
+
+ * heap/Heap.cpp:
+ (JSC::Heap::clearUnmarkedExecutables):
+
2016-01-29 Ada Chan <[email protected]>
Enable VIDEO_PRESENTATION_MODE only in Debug and Release builds on Mac
Modified: trunk/Source/_javascript_Core/heap/Heap.cpp (195904 => 195905)
--- trunk/Source/_javascript_Core/heap/Heap.cpp 2016-01-30 20:10:18 UTC (rev 195904)
+++ trunk/Source/_javascript_Core/heap/Heap.cpp 2016-01-30 20:48:11 UTC (rev 195905)
@@ -996,6 +996,8 @@
std::swap(m_executables[i], m_executables.last());
m_executables.removeLast();
}
+
+ m_executables.shrinkToFit();
}
void Heap::deleteUnmarkedCompiledCode()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes