• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/libauto-186/auto_tester/

Lines Matching refs:block

30  Allocate a test block.
32 Verify test block was scanned exactly once.
33 Verify test block remained local.
34 Assign test block to a global variable.
35 Verify test block became global.
36 Clear global variable, assign test block to ivar.
39 verify block is scanned exactly once and age decrements by 1
40 until test block age becomes 0.
42 Verify block is scanned exactly once.
44 Verify block *not* scanned.
45 Clear test block ivar.
47 Verify block *not* scanned and *not* collected.
49 Verify block was collected.
118 // verify the block got scanned, flag an error if it did not
120 do { if (!_scanned) { [self fail:[NSString stringWithFormat:@"block was not scanned as expected in %@", NSStringFromSelector(_cmd)]]; [self testFinished]; return; } _scanned = NO; } while(0)
123 // Second step: transition the block to global
128 // verify the block isn't global already
130 [self fail:@"block became global prematurely"];
135 // make the block go global and verify that we saw the transition
141 [self fail:@"block failed to become global"];
146 // now the only reference to the test block is in _globalTestBlock
148 // do generational collections until the block becomes old
154 // This method runs generational collections until the block reaches age 0
165 // We are done iterating, the block is now age 0.
166 // Now we want to verify that the block does *NOT* get scanned during a generational collection.
182 // Verify that a generational scan does *not* scan the block.
190 // The last scan was generational, the block is old, and write barriers were cleared. Verify the block was *not* scanned.
194 [self fail:@"age 0 block scanned during generational collection"];
199 // Now just verify that the block gets collected
203 // Run a generational and verify the old block was not collected.
208 // We expect that the old garbage block would not be collected by a generational collection
212 [self fail:@"old block collected by generational collection"];
222 // A full collection should have collected the garbage block.
226 [self fail:@"block not collected after full collection"];
234 // Watch for our test block becoming global.
235 - (void)blockBecameGlobal:(void *)block withAge:(uint32_t)age
237 if (block == [self undisguise:_disguisedTestBlock]) {
241 [super blockBecameGlobal:block withAge:age];
245 // Monitor the aging of our test block
246 - (void)blockMatured:(void *)block newAge:(uint32_t)age
248 if (block == [self undisguise:_disguisedTestBlock]) {
253 [super blockMatured:block newAge:age];
257 // Check if the test block is in the garbage list
260 if ([self block:[self undisguise:_disguisedTestBlock] isInList:garbage_list count:count]) {
262 [self fail:@"block was collected prematurely"];
269 // Monitor when our test block is scanned, and verify it never gets scanned twice in the same collection.
270 - (void)scanBlock:(void *)block endAddress:(void *)end
272 if (block == [self undisguise:_disguisedTestBlock]) {
274 [self fail:@"block scanned twice"];
278 [super scanBlock:block endAddress:end];
281 - (void)scanBlock:(void *)block endAddress:(void *)end withLayout:(const unsigned char *)map
283 [self scanBlock:block endAddress:end];
284 [super scanBlock:block endAddress:end withLayout:map];