ObjFW  Check-in [1315dd59d4]

Overview
Comment:Abort when all selector slots are exhausted.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | runtime
Files: files | file ages | folders
SHA3-256: 1315dd59d4d43ce672f39d86a0b86f3eef5d6bbab61138666d4776a4d657013a
User & Date: js on 2012-05-07 08:24:03
Other Links: branch diff | manifest | tags
Context
2012-05-08
20:30
Add support for 16 bit selector UIDs. check-in: fef47937e5 user: js tags: runtime
2012-05-07
08:24
Abort when all selector slots are exhausted. check-in: 1315dd59d4 user: js tags: runtime
08:22
Use lower 24 bits of the selector hash. check-in: ee5fd980f8 user: js tags: runtime
Changes

Modified src/runtime/selector.m from [687a3c992c] to [f394a43240].

56
57
58
59
60
61
62



63
64
65
66
67
68
69
			if (!strcmp(name, sel->name)) {
				rsel->uid = hash;
				return;
			}

			hash++;
		}



	}

	objc_sparsearray_set(selectors, hash, (void*)sel->name);
	rsel->uid = hash;
}

SEL







>
>
>







56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
			if (!strcmp(name, sel->name)) {
				rsel->uid = hash;
				return;
			}

			hash++;
		}

		if (hash >= last)
			ERROR("Selector slots exhausted!");
	}

	objc_sparsearray_set(selectors, hash, (void*)sel->name);
	rsel->uid = hash;
}

SEL