Lines Matching defs:cache
128 // very first test initialises the OSMetaClass cache.
255 // very first test initialises the OSMetaClass cache.
363 const OSSymbol *cache[numStrCache];
366 // very first test initialises the OSMetaClass cache.
367 cache[0] = IOSymbol::withCStringNoCopy(testC00);
368 TEST_ASSERT('u', "0a", cache[0]);
369 if (cache[0])
370 cache[0]->release();
374 // Setup the symbol cache, make sure it grows the symbol unique'ing
378 cache[i] = OSSymbol::withCStringNoCopy(strCache[i]);
379 if (!cache[i]) {
382 else if (!cache[i]->isEqualTo(strCache[i])) {
388 // sure that we wind them and that different cache entries really are
393 if (cache[i] != cache[j] && cache[i]->isEqualTo(cache[j])) {
397 else if (cache[i] == cache[j]) {
398 if (cache[i]->getRetainCount() == 1) {
407 // Clear out the cache and check that the unique'ing hashtable has grown
409 if (cache[i]) {
410 cache[i]->release();
411 cache[i] = 0;
421 cache[i] = OSSymbol::withCString(strCache[i]);
423 if (cache[i]) {
424 cache[i]->release();
425 cache[i] = 0;
432 // the cache is active the symbol semantics still work.
441 cache[i] = OSSymbol::withString(tmpStr);
442 if (!cache[i]) {
451 if (cache[i]) {
455 if (cache[i] != tmpSymb) {
460 cache[i]->release();
461 cache[i] = 0;