src/share/vm/runtime/safepoint.cpp

changeset 7074
833b0f92429a
parent 6911
ce8f6bb717c9
child 7535
7ae4e26cb1e0
child 8199
5d96c022391c
equal deleted inserted replaced
7073:4d3a43351904 7074:833b0f92429a
48 #include "runtime/stubCodeGenerator.hpp" 48 #include "runtime/stubCodeGenerator.hpp"
49 #include "runtime/stubRoutines.hpp" 49 #include "runtime/stubRoutines.hpp"
50 #include "runtime/sweeper.hpp" 50 #include "runtime/sweeper.hpp"
51 #include "runtime/synchronizer.hpp" 51 #include "runtime/synchronizer.hpp"
52 #include "runtime/thread.inline.hpp" 52 #include "runtime/thread.inline.hpp"
53 #include "services/memTracker.hpp"
54 #include "services/runtimeService.hpp" 53 #include "services/runtimeService.hpp"
55 #include "utilities/events.hpp" 54 #include "utilities/events.hpp"
56 #include "utilities/macros.hpp" 55 #include "utilities/macros.hpp"
57 #ifdef TARGET_ARCH_x86 56 #ifdef TARGET_ARCH_x86
58 # include "nativeInst_x86.hpp" 57 # include "nativeInst_x86.hpp"
545 // CMS delays purging the CLDG until the beginning of the next safepoint and to 544 // CMS delays purging the CLDG until the beginning of the next safepoint and to
546 // make sure concurrent sweep is done 545 // make sure concurrent sweep is done
547 TraceTime t7("purging class loader data graph", TraceSafepointCleanupTime); 546 TraceTime t7("purging class loader data graph", TraceSafepointCleanupTime);
548 ClassLoaderDataGraph::purge_if_needed(); 547 ClassLoaderDataGraph::purge_if_needed();
549 } 548 }
550
551 if (MemTracker::is_on()) {
552 MemTracker::sync();
553 }
554 } 549 }
555 550
556 551
557 bool SafepointSynchronize::safepoint_safe(JavaThread *thread, JavaThreadState state) { 552 bool SafepointSynchronize::safepoint_safe(JavaThread *thread, JavaThreadState state) {
558 switch(state) { 553 switch(state) {

mercurial