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

Side by Side Diff: third_party/WebKit/Source/platform/heap/PagePool.h

Issue 2795923002: Rewrite references to "wtf/" to "platform/wtf/" in platform/heap. (Closed)
Patch Set: Same as PS1; PS1 lacks some files for some reason. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PagePool_h 5 #ifndef PagePool_h
6 #define PagePool_h 6 #define PagePool_h
7 7
8 #include "platform/heap/ThreadState.h" 8 #include "platform/heap/ThreadState.h"
9 #include "wtf/Allocator.h" 9 #include "platform/wtf/Allocator.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class PageMemory; 13 class PageMemory;
14 14
15 // Once pages have been used for one type of thread heap they will never be 15 // Once pages have been used for one type of thread heap they will never be
16 // reused for another type of thread heap. Instead of unmapping, we add the 16 // reused for another type of thread heap. Instead of unmapping, we add the
17 // pages to a pool of pages to be reused later by a thread heap of the same 17 // pages to a pool of pages to be reused later by a thread heap of the same
18 // type. This is done as a security feature to avoid type confusion. The 18 // type. This is done as a security feature to avoid type confusion. The
19 // heaps are type segregated by having separate thread arenas for different 19 // heaps are type segregated by having separate thread arenas for different
(...skipping 19 matching lines...) Expand all
39 PageMemory* data; 39 PageMemory* data;
40 PoolEntry* next; 40 PoolEntry* next;
41 }; 41 };
42 42
43 PoolEntry* m_pool[BlinkGC::NumberOfArenas]; 43 PoolEntry* m_pool[BlinkGC::NumberOfArenas];
44 }; 44 };
45 45
46 } // namespace blink 46 } // namespace blink
47 47
48 #endif 48 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PageMemory.cpp ('k') | third_party/WebKit/Source/platform/heap/PagePool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698