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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.cpp

Issue 1650123002: Keep (Heap)TerminatedArray in a consistent state while building. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add assert Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 4d7a95459258d722b8df3c3765488b0436d03a09..a981e608582bc86bfc7da581004fbbde014010ef 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -4343,6 +4343,7 @@ TEST(HeapTest, HeapTerminatedArray)
{
HeapTerminatedArrayBuilder<TerminatedArrayItem> builder(arr);
builder.grow(prefixSize);
+ conservativelyCollectGarbage();
for (size_t i = 0; i < prefixSize; i++)
builder.append(TerminatedArrayItem(IntWrapper::create(i)));
arr = builder.release();
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698