OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... | |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "WTF.h" | 32 #include "WTF.h" |
33 | 33 |
34 #include "wtf/DefaultAllocator.h" | 34 #include "wtf/DefaultAllocator.h" |
35 #include "wtf/FastMalloc.h" | 35 #include "wtf/FastMalloc.h" |
36 | 36 |
37 #ifndef NDEBUG | |
38 #include "wtf/MainThread.h" | |
Ken Russell (switch to Gerrit)
2014/07/15 23:25:35
This #include was unnecessary.
| |
39 #endif | |
40 | |
41 namespace WTF { | 37 namespace WTF { |
42 | 38 |
43 extern void initializeThreading(); | 39 extern void initializeThreading(); |
44 | 40 |
45 bool s_initialized; | 41 bool s_initialized; |
46 bool s_shutdown; | 42 bool s_shutdown; |
47 bool Partitions::s_initialized; | 43 bool Partitions::s_initialized; |
48 PartitionAllocatorGeneric Partitions::m_bufferAllocator; | 44 PartitionAllocatorGeneric Partitions::m_bufferAllocator; |
49 | 45 |
50 void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncr easingTimeFunction) | 46 void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncr easingTimeFunction) |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 spinLockUnlock(&lock); | 81 spinLockUnlock(&lock); |
86 } | 82 } |
87 | 83 |
88 void Partitions::shutdown() | 84 void Partitions::shutdown() |
89 { | 85 { |
90 fastMallocShutdown(); | 86 fastMallocShutdown(); |
91 m_bufferAllocator.shutdown(); | 87 m_bufferAllocator.shutdown(); |
92 } | 88 } |
93 | 89 |
94 } // namespace WTF | 90 } // namespace WTF |
OLD | NEW |