comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp @ 798:fe1574da39fc

6848641: CMSCollector::_roots_scanning_options should be initialized Summary: The field is now initialized in the constructor. Reviewed-by: iveresov, jmasa, johnc
author ysr
date Sun, 07 Jun 2009 00:27:41 -0700
parents 0fbdb4381b99
children 05f89f00a864
comparison
equal deleted inserted replaced
797:7fd05714f579 798:fe1574da39fc
543 } 543 }
544 // Did we (allow) unload classes in the previous concurrent cycle? 544 // Did we (allow) unload classes in the previous concurrent cycle?
545 bool unloaded_classes_last_cycle() const { 545 bool unloaded_classes_last_cycle() const {
546 return concurrent_cycles_since_last_unload() == 0; 546 return concurrent_cycles_since_last_unload() == 0;
547 } 547 }
548 // Root scanning options for perm gen
549 int _roots_scanning_options;
550 int roots_scanning_options() const { return _roots_scanning_options; }
551 void add_root_scanning_option(int o) { _roots_scanning_options |= o; }
552 void remove_root_scanning_option(int o) { _roots_scanning_options &= ~o; }
548 553
549 // Verification support 554 // Verification support
550 CMSBitMap _verification_mark_bm; 555 CMSBitMap _verification_mark_bm;
551 void verify_after_remark_work_1(); 556 void verify_after_remark_work_1();
552 void verify_after_remark_work_2(); 557 void verify_after_remark_work_2();
716 NOT_PRODUCT(bool no_preserved_marks() const;) 721 NOT_PRODUCT(bool no_preserved_marks() const;)
717 // in support of testing overflow code 722 // in support of testing overflow code
718 NOT_PRODUCT(int _overflow_counter;) 723 NOT_PRODUCT(int _overflow_counter;)
719 NOT_PRODUCT(bool simulate_overflow();) // sequential 724 NOT_PRODUCT(bool simulate_overflow();) // sequential
720 NOT_PRODUCT(bool par_simulate_overflow();) // MT version 725 NOT_PRODUCT(bool par_simulate_overflow();) // MT version
721
722 int _roots_scanning_options;
723 int roots_scanning_options() const { return _roots_scanning_options; }
724 void add_root_scanning_option(int o) { _roots_scanning_options |= o; }
725 void remove_root_scanning_option(int o) { _roots_scanning_options &= ~o; }
726 726
727 // CMS work methods 727 // CMS work methods
728 void checkpointRootsInitialWork(bool asynch); // initial checkpoint work 728 void checkpointRootsInitialWork(bool asynch); // initial checkpoint work
729 729
730 // a return value of false indicates failure due to stack overflow 730 // a return value of false indicates failure due to stack overflow