// Card marks are not precise. The current system can leave us with // a mismash of precise marks and beginning of object marks. This means // we test for missing precise marks first. If any are found, we don't // fail unless the object head is also unmarked. virtual void do_object(oop obj) { CheckForUnmarkedOops object_check(_young_gen, _card_table); obj->oop_iterate(&object_check); if (object_check.has_unmarked_oop()) { assert(_card_table->addr_is_marked_imprecise(obj), "Found unmarked young_gen object"); } }
void Foo::move(int randx[],int randy[]) { //Move xoffSet += xvelocity; yoffSet+= yvelocity; //Keep the stick figure in bounds if (score >= 5) { if(( check_collision( xoffSet,yoffSet, wall ) )|| (check_collision(xoffSet,yoffSet,wall2))) { fire =1; } } if(( xoffSet < 0 ) || ( xoffSet > SCREEN_WIDTH-40)||( check_collision( xoffSet,yoffSet, wall ) )|| (check_collision(xoffSet,yoffSet,wall2))) { xoffSet -= xvelocity; } if((yoffSet <0)|| (yoffSet > SCREEN_HEIGHT-FOO_HEIGHT-20)||( check_collision( xoffSet,yoffSet, wall ) )|| (check_collision(xoffSet,yoffSet,wall2))) { yoffSet-= yvelocity; } if(object_check(xoffSet,yoffSet,xpos,ypos)) { // xoffSet -= xvelocity; score = score+5; inpos=inpos+1; Mix_PlayChannel( -1, collide, 0 ); /*if (inpos==1) { t1.start(); }*/ t+=4-((SDL_GetTicks() - start)/1000); start=SDL_GetTicks(); //final= 10-((SDL_GetTicks() - start)/1000) + t; } }