397 size_t new_word_size = new_memregion.word_size(); 398 399 start_array()->set_covered_region(new_memregion); 400 ParallelScavengeHeap::heap()->barrier_set()->resize_covered_region(new_memregion); 401 402 // ALWAYS do this last!! 403 object_space()->initialize(new_memregion, 404 SpaceDecorator::DontClear, 405 SpaceDecorator::DontMangle); 406 407 assert(new_word_size == heap_word_size(object_space()->capacity_in_bytes()), 408 "Sanity"); 409 } 410 411 size_t PSOldGen::gen_size_limit() { 412 return _max_gen_size; 413 } 414 415 void PSOldGen::reset_after_change() { 416 ShouldNotReachHere(); 417 return; 418 } 419 420 size_t PSOldGen::available_for_expansion() { 421 ShouldNotReachHere(); 422 return 0; 423 } 424 425 size_t PSOldGen::available_for_contraction() { 426 ShouldNotReachHere(); 427 return 0; 428 } 429 430 void PSOldGen::print() const { print_on(tty);} 431 void PSOldGen::print_on(outputStream* st) const { 432 st->print(" %-15s", name()); 433 if (PrintGCDetails && Verbose) { 434 st->print(" total " SIZE_FORMAT ", used " SIZE_FORMAT, 435 capacity_in_bytes(), used_in_bytes()); 436 } else { 437 st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K", 438 capacity_in_bytes()/K, used_in_bytes()/K); 439 } 440 st->print_cr(" [" INTPTR_FORMAT ", " INTPTR_FORMAT ", " INTPTR_FORMAT ")", 441 p2i(virtual_space()->low_boundary()), 442 p2i(virtual_space()->high()), 443 p2i(virtual_space()->high_boundary())); 444 445 st->print(" object"); object_space()->print_on(st); 446 } 447 | 397 size_t new_word_size = new_memregion.word_size(); 398 399 start_array()->set_covered_region(new_memregion); 400 ParallelScavengeHeap::heap()->barrier_set()->resize_covered_region(new_memregion); 401 402 // ALWAYS do this last!! 403 object_space()->initialize(new_memregion, 404 SpaceDecorator::DontClear, 405 SpaceDecorator::DontMangle); 406 407 assert(new_word_size == heap_word_size(object_space()->capacity_in_bytes()), 408 "Sanity"); 409 } 410 411 size_t PSOldGen::gen_size_limit() { 412 return _max_gen_size; 413 } 414 415 void PSOldGen::reset_after_change() { 416 ShouldNotReachHere(); 417 } 418 419 size_t PSOldGen::available_for_expansion() { 420 ShouldNotReachHere(); 421 } 422 423 size_t PSOldGen::available_for_contraction() { 424 ShouldNotReachHere(); 425 } 426 427 void PSOldGen::print() const { print_on(tty);} 428 void PSOldGen::print_on(outputStream* st) const { 429 st->print(" %-15s", name()); 430 if (PrintGCDetails && Verbose) { 431 st->print(" total " SIZE_FORMAT ", used " SIZE_FORMAT, 432 capacity_in_bytes(), used_in_bytes()); 433 } else { 434 st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K", 435 capacity_in_bytes()/K, used_in_bytes()/K); 436 } 437 st->print_cr(" [" INTPTR_FORMAT ", " INTPTR_FORMAT ", " INTPTR_FORMAT ")", 438 p2i(virtual_space()->low_boundary()), 439 p2i(virtual_space()->high()), 440 p2i(virtual_space()->high_boundary())); 441 442 st->print(" object"); object_space()->print_on(st); 443 } 444 |