< prev index next >

src/share/vm/gc/g1/g1IHOPControl.cpp

Print this page
rev 9431 : dihop-changes
rev 9432 : imported patch sihop-thomas-review
rev 9433 : imported patch erik-jmasa-review
rev 9434 : imported patch fix-evac-failure-needs-stats
rev 9435 : [mq]: mikael-erik-review

@@ -77,13 +77,12 @@
 
 void G1StaticIHOPControl::test() {
   size_t const initial_ihop = 45;
 
   G1StaticIHOPControl ctrl(initial_ihop, 100);
-  size_t threshold;
   
-  threshold = ctrl.get_conc_mark_start_threshold();
+  size_t threshold = ctrl.get_conc_mark_start_threshold();
   assert(threshold == initial_ihop,
          "Expected IHOP threshold of " SIZE_FORMAT " but is " SIZE_FORMAT, initial_ihop, threshold);
 
   ctrl.update_allocation_info(100.0, 100, 100);
   threshold = ctrl.get_conc_mark_start_threshold();

@@ -104,12 +103,10 @@
   test_update(&ctrl, 12, 10, 10, 3);
   threshold = ctrl.get_conc_mark_start_threshold();
   assert(threshold == initial_ihop,
          "Expected IHOP threshold of " SIZE_FORMAT " but is " SIZE_FORMAT, initial_ihop, threshold);
 }
-#endif
 
-#ifndef PRODUCT
 void IHOP_test() {
   G1StaticIHOPControl::test();
 }
 #endif
< prev index next >