Home | History | Annotate | Download | only in tests

Lines Matching defs:object

3759 RefCountedClass *object = NULL; 
3761 object->Ref();
3763 object->AccessData();
3764 object->Unref();
3768 object = new RefCountedClass;
3769 object->Annotate_Race();
3786 RefCountedClass *object = NULL;
3788 object->Ref();
3790 object->AccessData();
3791 object->Unref();
3796 object = new RefCountedClass;
3813 RefCountedClass *object = NULL;
3815 object->Ref();
3817 object->AccessData();
3818 object->Unref();
3823 object = new RefCountedClass;
3938 AtomicRefCountedClass *object = NULL;
3940 object->Ref();
3942 object->AccessData();
3943 object->Unref(); // All the tricky stuff is here.
3947 object = new AtomicRefCountedClass;
3948 object->Annotate_Race();
3964 AtomicRefCountedClass *object = NULL;
3966 object->Ref();
3968 object->AccessData();
3969 object->Unref(); // All the tricky stuff is here.
3973 object = new AtomicRefCountedClass;
3974 object->AnnotateUnref();
3984 // test82: Object published w/o synchronization. {{{1
3987 // Writer creates a new object and makes the pointer visible to the Reader.
3988 // Reader waits until the object pointer is non-null and reads the object.
4057 // test83: Object published w/o synchronization (simple version){{{1
4140 // We create an object 'A *a = new B'
4141 // and pass this object from Thread1 to Thread2.
4143 // Thread1 deletes the object. B::~B waits untill the object can be destroyed
4229 // We create an object 'A *a = new C' in Thread1 and pass it to Thread2.
4382 // The Publisher creates an object and safely publishes it under a mutex.
4383 // Readers access the object read-only.
4434 // The Publisher creates an object and safely publishes it under a mutex MU1.
4435 // Accessors get the object under MU1 and access it (read/write) under MU2.
4512 // This annotation should go right before the object is published.
5121 // test108: TN. initialization of static object. {{{1
5123 // Here we have a function-level static object.
5158 printf("test108: negative, initialization of static object\n");
5265 ANNOTATE_EXPECT_RACE(STACK, "real race on stack object");
5267 ANNOTATE_EXPECT_RACE(&GLOB, "real race on global object");
5269 ANNOTATE_EXPECT_RACE(&STATIC, "real race on a static global object");
5271 ANNOTATE_EXPECT_RACE(MALLOC, "real race on a malloc-ed object");
5273 ANNOTATE_EXPECT_RACE(CALLOC, "real race on a calloc-ed object");
5275 ANNOTATE_EXPECT_RACE(REALLOC, "real race on a realloc-ed object");
5277 ANNOTATE_EXPECT_RACE(VALLOC, "real race on a valloc-ed object");
5279 ANNOTATE_EXPECT_RACE(PVALLOC, "real race on a pvalloc-ed object");
5281 ANNOTATE_EXPECT_RACE(MEMALIGN, "real race on a memalign-ed object");
5283 ANNOTATE_EXPECT_RACE(POSIX_MEMALIGN.pi, "real race on a posix_memalign-ed object");
5285 ANNOTATE_EXPECT_RACE(MMAP, "real race on a mmap-ed object");
5288 ANNOTATE_EXPECT_RACE(NEW, "real race on a new-ed object");
5290 ANNOTATE_EXPECT_RACE(NEW_ARR, "real race on a new[]-ed object");
5295 printf("test110: positive (race on a stack object)\n");
6778 // test304: Can not trace the memory, since it is a library object. {{{1
6957 // test309: Simple race on an STL object. {{{1
6970 printf("test309: simple race on an STL object.\n");