Mercurial > hg > graal-compiler
comparison src/share/vm/memory/space.cpp @ 7448:b735136e0d82
8004132: SerialGC: ValidateMarkSweep broken when running GCOld
Summary: Remove bit-rotten ValidateMarkSweep functionality and flag.
Reviewed-by: johnc, jmasa
Contributed-by: tamao <tao.mao@oracle.com>
author | johnc |
---|---|
date | Wed, 02 Jan 2013 11:32:41 -0800 |
parents | 2fc0334f613a |
children | db9981fd3124 |
comparison
equal
deleted
inserted
replaced
7447:1de1b145f6bc | 7448:b735136e0d82 |
---|---|
409 // mark and handle it specially later on. | 409 // mark and handle it specially later on. |
410 q->init_mark(); | 410 q->init_mark(); |
411 assert(q->forwardee() == NULL, "should be forwarded to NULL"); | 411 assert(q->forwardee() == NULL, "should be forwarded to NULL"); |
412 } | 412 } |
413 | 413 |
414 VALIDATE_MARK_SWEEP_ONLY(MarkSweep::register_live_oop(q, size)); | |
415 compact_top += size; | 414 compact_top += size; |
416 | 415 |
417 // we need to update the offset table so that the beginnings of objects can be | 416 // we need to update the offset table so that the beginnings of objects can be |
418 // found during scavenge. Note that we are updating the offset table based on | 417 // found during scavenge. Note that we are updating the offset table based on |
419 // where the object will be once the compaction phase finishes. | 418 // where the object will be once the compaction phase finishes. |
468 debug_only(HeapWord* prev_q = NULL); | 467 debug_only(HeapWord* prev_q = NULL); |
469 while (q < t) { | 468 while (q < t) { |
470 if (oop(q)->is_gc_marked()) { | 469 if (oop(q)->is_gc_marked()) { |
471 // q is alive | 470 // q is alive |
472 | 471 |
473 VALIDATE_MARK_SWEEP_ONLY(MarkSweep::track_interior_pointers(oop(q))); | |
474 // point all the oops to the new location | 472 // point all the oops to the new location |
475 size_t size = oop(q)->adjust_pointers(); | 473 size_t size = oop(q)->adjust_pointers(); |
476 VALIDATE_MARK_SWEEP_ONLY(MarkSweep::check_interior_pointers()); | |
477 | 474 |
478 debug_only(prev_q = q); | 475 debug_only(prev_q = q); |
479 VALIDATE_MARK_SWEEP_ONLY(MarkSweep::validate_live_oop(oop(q), size)); | |
480 | 476 |
481 q += size; | 477 q += size; |
482 } else { | 478 } else { |
483 // q is not a live object. But we're not in a compactible space, | 479 // q is not a live object. But we're not in a compactible space, |
484 // So we don't have live ranges. | 480 // So we don't have live ranges. |