OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2536 V8::AddImplicitReferences(g3s1, g3_children, 1); | 2536 V8::AddImplicitReferences(g3s1, g3_children, 1); |
2537 } | 2537 } |
2538 | 2538 |
2539 HEAP->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask); | 2539 HEAP->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask); |
2540 | 2540 |
2541 // All objects should be gone. 7 global handles in total. | 2541 // All objects should be gone. 7 global handles in total. |
2542 CHECK_EQ(7, counter.NumberOfWeakCalls()); | 2542 CHECK_EQ(7, counter.NumberOfWeakCalls()); |
2543 } | 2543 } |
2544 | 2544 |
2545 | 2545 |
2546 THREADED_TEST(ApiObjectGroupsCycleForScavenger) { | 2546 // TODO(mstarzinger): This should be a THREADED_TEST but causes failures |
| 2547 // on the buildbots, so was made non-threaded for the time being. |
| 2548 TEST(ApiObjectGroupsCycleForScavenger) { |
2547 HandleScope scope; | 2549 HandleScope scope; |
2548 LocalContext env; | 2550 LocalContext env; |
2549 | 2551 |
2550 WeakCallCounter counter(1234); | 2552 WeakCallCounter counter(1234); |
2551 | 2553 |
2552 Persistent<Object> g1s1; | 2554 Persistent<Object> g1s1; |
2553 Persistent<Object> g1s2; | 2555 Persistent<Object> g1s2; |
2554 Persistent<Object> g2s1; | 2556 Persistent<Object> g2s1; |
2555 Persistent<Object> g2s2; | 2557 Persistent<Object> g2s2; |
2556 Persistent<Object> g3s1; | 2558 Persistent<Object> g3s1; |
(...skipping 15418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17975 | 17977 |
17976 i::Semaphore* sem_; | 17978 i::Semaphore* sem_; |
17977 volatile int sem_value_; | 17979 volatile int sem_value_; |
17978 }; | 17980 }; |
17979 | 17981 |
17980 | 17982 |
17981 THREADED_TEST(SemaphoreInterruption) { | 17983 THREADED_TEST(SemaphoreInterruption) { |
17982 ThreadInterruptTest().RunTest(); | 17984 ThreadInterruptTest().RunTest(); |
17983 } | 17985 } |
17984 #endif // WIN32 | 17986 #endif // WIN32 |
OLD | NEW |