hotspot/src/share/vm/runtime/safepoint.cpp
changeset 25946 1572c9f03fb9
parent 25716 fc9bd7814b10
child 27662 222e6578695a
equal deleted inserted replaced
25902:7e9ffb1fe1df 25946:1572c9f03fb9
    50 #include "runtime/stubCodeGenerator.hpp"
    50 #include "runtime/stubCodeGenerator.hpp"
    51 #include "runtime/stubRoutines.hpp"
    51 #include "runtime/stubRoutines.hpp"
    52 #include "runtime/sweeper.hpp"
    52 #include "runtime/sweeper.hpp"
    53 #include "runtime/synchronizer.hpp"
    53 #include "runtime/synchronizer.hpp"
    54 #include "runtime/thread.inline.hpp"
    54 #include "runtime/thread.inline.hpp"
    55 #include "services/memTracker.hpp"
       
    56 #include "services/runtimeService.hpp"
    55 #include "services/runtimeService.hpp"
    57 #include "utilities/events.hpp"
    56 #include "utilities/events.hpp"
    58 #include "utilities/macros.hpp"
    57 #include "utilities/macros.hpp"
    59 #if INCLUDE_ALL_GCS
    58 #if INCLUDE_ALL_GCS
    60 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
    59 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
   525     // CMS delays purging the CLDG until the beginning of the next safepoint and to
   524     // CMS delays purging the CLDG until the beginning of the next safepoint and to
   526     // make sure concurrent sweep is done
   525     // make sure concurrent sweep is done
   527     TraceTime t7("purging class loader data graph", TraceSafepointCleanupTime);
   526     TraceTime t7("purging class loader data graph", TraceSafepointCleanupTime);
   528     ClassLoaderDataGraph::purge_if_needed();
   527     ClassLoaderDataGraph::purge_if_needed();
   529   }
   528   }
   530 
       
   531   if (MemTracker::is_on()) {
       
   532     MemTracker::sync();
       
   533   }
       
   534 }
   529 }
   535 
   530 
   536 
   531 
   537 bool SafepointSynchronize::safepoint_safe(JavaThread *thread, JavaThreadState state) {
   532 bool SafepointSynchronize::safepoint_safe(JavaThread *thread, JavaThreadState state) {
   538   switch(state) {
   533   switch(state) {