Searched refs:gc_zone (Results 1 - 13 of 13) sorted by relevance

/macosx-10.9.5/libauto-185.5/tests/
H A Dfillheap.m27 static auto_zone_t* gc_zone;
30 gc_zone = auto_zone_create("test collected zone");
31 auto_zone_register_thread(gc_zone);
40 while (buffer = (char*)auto_zone_allocate_object(gc_zone, (size_t)BufferLength, AUTO_OBJECT_UNSCANNED, 1, 0)) {
H A Dalloc_test.c31 static auto_zone_t *gc_zone; variable
63 gc_zone = auto_zone_create("sample collected zone");
65 control = auto_collection_parameters(gc_zone);
73 auto_zone_register_thread(gc_zone);
75 //auto_collector_disable(gc_zone);
87 pointers[i] = auto_zone_allocate_object(gc_zone, 100, AUTO_OBJECT_SCANNED, 1, 0);
96 malloc_zone_free(gc_zone, pointers[i]);
119 auto_collect(gc_zone, AUTO_COLLECT_FULL_COLLECTION, NULL);
/macosx-10.9.5/objc4-551.1/runtime/
H A Dobjc-externalref.mm90 void **new_list = (void **)(list->_buffer ? malloc_zone_realloc(gc_zone, list->_buffer, new_size * sizeof(void *)) : auto_zone_allocate_object(gc_zone, new_size * sizeof(void *), memory_type, false, false));
98 auto_zone_root_write_barrier(gc_zone, &list->_buffer, new_list);
131 if (auto_zone_is_valid_pointer(gc_zone, obj)) {
138 auto_zone_set_write_barrier(gc_zone, &list->_buffer[index], obj);
140 auto_assign_weak_reference(gc_zone, obj, (const void **)&list->_buffer[index], NULL);
168 result = (id)auto_read_weak_reference(gc_zone, &list->_buffer[index]);
195 old_value = (id)auto_read_weak_reference(gc_zone, &list->_buffer[index]);
196 auto_assign_weak_reference(gc_zone, NULL, (const void **)&list->_buffer[index], NULL);
H A Dobjc-auto.mm66 auto_zone_t *gc_zone = nil;
99 auto_collection_parameters(gc_zone)->collection_threshold = threshold;
105 auto_collection_parameters(gc_zone)->collection_threshold = threshold;
111 auto_collection_parameters(gc_zone)->full_vs_gen_frequency = ratio;
117 auto_collection_parameters(gc_zone)->full_vs_gen_frequency = ratio;
184 auto_zone_collect_and_notify(gc_zone, amode, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
200 auto_zone_collect(gc_zone, amode);
208 return UseGC && auto_zone_is_valid_pointer(gc_zone, object) != 0;
223 return gc_zone;
231 if (!_objc_dumpHeap(gc_zone, buffe
[all...]
H A Dobjc-runtime.mm603 return (id)auto_zone_get_associative_ref(gc_zone, object, (void *)key);
610 auto_zone_set_associative_ref(gc_zone, object, (void *)key, value);
638 auto_zone_erase_associative_refs(gc_zone, object);
H A Dobjc-class.mm854 if (UseGC) return (Class) malloc_zone_calloc(gc_zone, 1, size);
965 auto_zone_retain(gc_zone, bytes); // gc free expects rc==1
996 auto_zone_batch_allocate(gc_zone, size, AUTO_OBJECT_SCANNED, 0, 1,
H A Dobjc-exception.mm509 if (auto_zone_is_valid_pointer(gc_zone, obj)) {
510 auto_zone_release(gc_zone, exc->obj);
533 if (auto_zone_is_valid_pointer(gc_zone, obj)) {
534 auto_zone_retain(gc_zone, obj);
H A Dobjc-private.h187 PRIVATE_EXTERN extern auto_zone_t *gc_zone; // the GC zone, or NULL if no GC
192 # define gc_zone NULL macro
H A DNSObject.mm1199 if (gc_zone) {
1200 return gc_zone;
H A Dobjc-class-old.mm2435 obj = (id)auto_zone_allocate_object(gc_zone, size,
2525 auto_zone_retain(gc_zone, anObject); // gc free expects rc==1
H A Dobjc-runtime-new.mm5699 obj = (id)auto_zone_allocate_object(gc_zone, size,
5808 obj = (id) auto_zone_allocate_object(gc_zone, size,
5919 auto_zone_retain(gc_zone, obj); // gc free expects rc==1
/macosx-10.9.5/objc4-551.1/runtime/Accessors.subproj/
H A Dobjc-accessors.mm191 auto_zone_write_barrier_memmove(gc_zone, dest, src, size);
/macosx-10.9.5/libauto-185.5/
H A Dauto_zone.cpp703 static auto_zone_t *gc_zone = NULL; variable
707 return gc_zone;
791 if (!gc_zone) gc_zone = (auto_zone_t *)azone; // cache first one for debugging, monitoring
1739 Zone *azone = (Zone *)gc_zone;

Completed in 197 milliseconds