comparison src/share/vm/compiler/methodLiveness.cpp @ 342:37f87013dfd8

6711316: Open source the Garbage-First garbage collector Summary: First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author ysr
date Thu, 05 Jun 2008 15:57:56 -0700
parents a61af66fc99e
children e66fd840cb6b
comparison
equal deleted inserted replaced
189:0b27f3512f9e 342:37f87013dfd8
74 int _count; 74 int _count;
75 public: 75 public:
76 BitCounter() : _count(0) {} 76 BitCounter() : _count(0) {}
77 77
78 // Callback when bit in map is set 78 // Callback when bit in map is set
79 virtual void do_bit(size_t offset) { 79 virtual bool do_bit(size_t offset) {
80 _count++; 80 _count++;
81 return true;
81 } 82 }
82 83
83 int count() { 84 int count() {
84 return _count; 85 return _count;
85 } 86 }
465 if (entry_bci == InvocationEntryBci) { 466 if (entry_bci == InvocationEntryBci) {
466 is_entry = true; 467 is_entry = true;
467 bci = 0; 468 bci = 0;
468 } 469 }
469 470
470 MethodLivenessResult answer(NULL,0); 471 MethodLivenessResult answer((uintptr_t*)NULL,0);
471 472
472 if (_block_count > 0) { 473 if (_block_count > 0) {
473 if (TimeLivenessAnalysis) _time_total.start(); 474 if (TimeLivenessAnalysis) _time_total.start();
474 if (TimeLivenessAnalysis) _time_query.start(); 475 if (TimeLivenessAnalysis) _time_query.start();
475 476