hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
changeset 24424 2658d7834c6e
parent 24351 61b33cc6d3cf
child 24429 4efc66ee325c
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
       
    24 
       
    25 #if !defined(__clang_major__) && defined(__GNUC__)
       
    26 // FIXME, formats have issues.  Disable this macro definition, compile, and study warnings for more information.
       
    27 #define ATTRIBUTE_PRINTF(x,y)
       
    28 #endif
    24 
    29 
    25 #include "precompiled.hpp"
    30 #include "precompiled.hpp"
    26 #include "code/codeCache.hpp"
    31 #include "code/codeCache.hpp"
    27 #include "code/icBuffer.hpp"
    32 #include "code/icBuffer.hpp"
    28 #include "gc_implementation/g1/bufferingOopClosure.hpp"
    33 #include "gc_implementation/g1/bufferingOopClosure.hpp"
   368                              curr->age_in_surv_rate_group_cond());
   373                              curr->age_in_surv_rate_group_cond());
   369       curr = curr->get_next_young_region();
   374       curr = curr->get_next_young_region();
   370     }
   375     }
   371   }
   376   }
   372 
   377 
   373   gclog_or_tty->print_cr("");
   378   gclog_or_tty->cr();
   374 }
   379 }
   375 
   380 
   376 void G1CollectedHeap::push_dirty_cards_region(HeapRegion* hr)
   381 void G1CollectedHeap::push_dirty_cards_region(HeapRegion* hr)
   377 {
   382 {
   378   // Claim the right to put the region on the dirty cards region list
   383   // Claim the right to put the region on the dirty cards region list
  3468       gclog_or_tty->print_cr("Heap:");
  3473       gclog_or_tty->print_cr("Heap:");
  3469       // It helps to have the per-region information in the output to
  3474       // It helps to have the per-region information in the output to
  3470       // help us track down what went wrong. This is why we call
  3475       // help us track down what went wrong. This is why we call
  3471       // print_extended_on() instead of print_on().
  3476       // print_extended_on() instead of print_on().
  3472       print_extended_on(gclog_or_tty);
  3477       print_extended_on(gclog_or_tty);
  3473       gclog_or_tty->print_cr("");
  3478       gclog_or_tty->cr();
  3474 #ifndef PRODUCT
  3479 #ifndef PRODUCT
  3475       if (VerifyDuringGC && G1VerifyDuringGCPrintReachable) {
  3480       if (VerifyDuringGC && G1VerifyDuringGCPrintReachable) {
  3476         concurrent_mark()->print_reachable("at-verification-failure",
  3481         concurrent_mark()->print_reachable("at-verification-failure",
  3477                                            vo, false /* all */);
  3482                                            vo, false /* all */);
  3478       }
  3483       }
  3662   }
  3667   }
  3663 
  3668 
  3664   PrintRSetsClosure(const char* msg) : _msg(msg), _occupied_sum(0) {
  3669   PrintRSetsClosure(const char* msg) : _msg(msg), _occupied_sum(0) {
  3665     gclog_or_tty->cr();
  3670     gclog_or_tty->cr();
  3666     gclog_or_tty->print_cr("========================================");
  3671     gclog_or_tty->print_cr("========================================");
  3667     gclog_or_tty->print_cr(msg);
  3672     gclog_or_tty->print_cr("%s", msg);
  3668     gclog_or_tty->cr();
  3673     gclog_or_tty->cr();
  3669   }
  3674   }
  3670 
  3675 
  3671   ~PrintRSetsClosure() {
  3676   ~PrintRSetsClosure() {
  3672     gclog_or_tty->print_cr("Occupied Sum: "SIZE_FORMAT, _occupied_sum);
  3677     gclog_or_tty->print_cr("Occupied Sum: "SIZE_FORMAT, _occupied_sum);