Differences From Artifact [10b66bd071]:
- File
src/runtime/runtime.h
— part of check-in
[f5927f8a84]
at
2012-07-14 20:00:11
on branch trunk
— New autorelease pools.
This uses the runtime's autorelease pools and implements autorelease
pools in the ObjFW runtime. It therefore uses ObjFW's autorelease pools
when using the ObjFW runtime and Apple's autorelease pools when using
the Apple runtime.These new pools should be ARC-compatible now and finally, it should be
possible to mix OFAutoreleasePools and NSAutoreleasePools again, even
@autoreleasepool is allowed in the mix now. This also means the old
bridge to NSAutoreleasePool should not be required anymore, as both use
the runtime's autorelease pools now.As a bonus, it's significantly faster to use the ObjFW runtime with
ObjFW's autorelease pools than to use Apple's runtime with Apple's
autorelease pools, as a quick benchmark using OFXMLParser on large files
showed. (Note: This is not only due to the different autorelease pools,
but also due to the fact that even with the same autorelease pools it is
faster using the ObjFW runtime, as can be seen in versions prior to this
commit.) (user: js, size: 3978) [annotate] [blame] [check-ins using]
To Artifact [557d11af3b]:
- File src/runtime/runtime.h — part of check-in [7cab5285df] at 2012-07-17 19:44:58 on branch trunk — Export structs for ivar introspection. (user: js, size: 4147) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
27 28 29 30 31 32 33 | struct objc_class { Class isa; Class superclass; const char *name; unsigned long version; unsigned long info; unsigned long instance_size; | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | struct objc_class { Class isa; Class superclass; const char *name; unsigned long version; unsigned long info; unsigned long instance_size; struct objc_ivar_list *ivars; struct objc_method_list *methodlist; struct objc_sparsearray *dtable; Class *subclass_list; void *sibling_class; struct objc_protocol_list *protocols; void *gc_object_type; unsigned long abi_version; |
︙ | ︙ | |||
71 72 73 74 75 76 77 78 79 80 81 82 83 84 | struct objc_category { const char *category_name; const char *class_name; struct objc_method_list *instance_methods; struct objc_method_list *class_methods; struct objc_protocol_list *protocols; }; #ifdef __OBJC__ @interface Protocol { @public #else typedef struct { | > > > > > > > > > > > | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | struct objc_category { const char *category_name; const char *class_name; struct objc_method_list *instance_methods; struct objc_method_list *class_methods; struct objc_protocol_list *protocols; }; struct objc_ivar { const char *name; const char *type; unsigned offset; }; struct objc_ivar_list { unsigned count; struct objc_ivar ivars[1]; }; #ifdef __OBJC__ @interface Protocol { @public #else typedef struct { |
︙ | ︙ |