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 4425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4436 | 4436 |
4437 key.clear(); | 4437 key.clear(); |
4438 Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); | 4438 Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); |
4439 EXPECT_EQ(0u, chain->map().size()); | 4439 EXPECT_EQ(0u, chain->map().size()); |
4440 } | 4440 } |
4441 | 4441 |
4442 TEST(HeapTest, Ephemeron) | 4442 TEST(HeapTest, Ephemeron) |
4443 { | 4443 { |
4444 typedef HeapHashMap<WeakMember<IntWrapper>, PairWithWeakHandling> WeakPairM
ap; | 4444 typedef HeapHashMap<WeakMember<IntWrapper>, PairWithWeakHandling> WeakPairM
ap; |
4445 typedef HeapHashMap<PairWithWeakHandling, WeakMember<IntWrapper> > PairWeak
Map; | 4445 typedef HeapHashMap<PairWithWeakHandling, WeakMember<IntWrapper> > PairWeak
Map; |
4446 typedef HeapHashMap<PairWithWeakHandling, PairWithWeakHandling> PairPairMap
; | |
4447 typedef HeapHashSet<WeakMember<IntWrapper> > Set; | 4446 typedef HeapHashSet<WeakMember<IntWrapper> > Set; |
4448 | 4447 |
4449 Persistent<WeakPairMap> weakPairMap = new WeakPairMap(); | 4448 Persistent<WeakPairMap> weakPairMap = new WeakPairMap(); |
4450 Persistent<WeakPairMap> weakPairMap2 = new WeakPairMap(); | 4449 Persistent<WeakPairMap> weakPairMap2 = new WeakPairMap(); |
4451 Persistent<WeakPairMap> weakPairMap3 = new WeakPairMap(); | 4450 Persistent<WeakPairMap> weakPairMap3 = new WeakPairMap(); |
4452 Persistent<WeakPairMap> weakPairMap4 = new WeakPairMap(); | 4451 Persistent<WeakPairMap> weakPairMap4 = new WeakPairMap(); |
4453 | 4452 |
4454 Persistent<PairWeakMap> pairWeakMap = new PairWeakMap(); | 4453 Persistent<PairWeakMap> pairWeakMap = new PairWeakMap(); |
4455 Persistent<PairWeakMap> pairWeakMap2 = new PairWeakMap(); | 4454 Persistent<PairWeakMap> pairWeakMap2 = new PairWeakMap(); |
4456 | 4455 |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4974 | 4973 |
4975 static volatile IntWrapper* s_workerObjectPointer; | 4974 static volatile IntWrapper* s_workerObjectPointer; |
4976 }; | 4975 }; |
4977 | 4976 |
4978 TEST(HeapTest, RecursiveMutex) | 4977 TEST(HeapTest, RecursiveMutex) |
4979 { | 4978 { |
4980 RecursiveLockingTester::test(); | 4979 RecursiveLockingTester::test(); |
4981 } | 4980 } |
4982 | 4981 |
4983 } // WebCore namespace | 4982 } // WebCore namespace |
OLD | NEW |