1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 #include "heap/stubs.h"
17 // This contains a leaking cycle:
18 // E -per-> A -mem-> B -ref-> C -own-> D -own-vec-> E
20 // The traced cycle from A -> B -> A does not leak.
22 class A
: public GarbageCollected
<A
> {
24 virtual void trace(Visitor
*);
29 class B
: public GarbageCollectedFinalized
<B
> {
31 virtual void trace(Visitor
*);
37 class C
: public RefCounted
<C
> {
44 Vector
<OwnPtr
<E
> > m_es
;