ObjFW  Check-in [1b3d035041]

Overview
Comment:Don't use the lower 8 bits for runtime flags.

It seems Clang sets flags in the lower 8 bits, so they shouldn't be used
for flags that the runtime sets.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | runtime
Files: files | file ages | folders
SHA3-256: 1b3d035041679e19e22f7903e0a55fd7e6d13626337337f2d1f68c3f25ca5805
User & Date: js on 2012-04-20 19:02:03
Other Links: branch diff | manifest | tags
Context
2012-04-21
10:35
Merge branch 'master' into runtime check-in: e5d2a616de user: js tags: runtime
2012-04-20
19:02
Don't use the lower 8 bits for runtime flags. check-in: 1b3d035041 user: js tags: runtime
13:54
Fix load queue. check-in: 70807340fb user: js tags: runtime
Changes

Modified src/runtime/runtime-private.h from [5779ba0dc9] to [e12f9f95c1].

113
114
115
116
117
118
119
120
121
122
123
124





125
126
127
128
129
130
131
113
114
115
116
117
118
119





120
121
122
123
124
125
126
127
128
129
130
131







-
-
-
-
-
+
+
+
+
+








struct objc_sparsearray_level3 {
	const void *buckets[256];
	BOOL empty;
};

enum objc_abi_class_info {
	OBJC_CLASS_INFO_CLASS	    = 0x01,
	OBJC_CLASS_INFO_METACLASS   = 0x02,
	OBJC_CLASS_INFO_SETUP	    = 0x04,
	OBJC_CLASS_INFO_LOADED	    = 0x08,
	OBJC_CLASS_INFO_INITIALIZED = 0x10
	OBJC_CLASS_INFO_CLASS	    = 0x001,
	OBJC_CLASS_INFO_METACLASS   = 0x002,
	OBJC_CLASS_INFO_SETUP	    = 0x100,
	OBJC_CLASS_INFO_LOADED	    = 0x200,
	OBJC_CLASS_INFO_INITIALIZED = 0x400
};

typedef struct {
	of_mutex_t mutex;
	of_thread_t owner;
	int count;
} objc_mutex_t;