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 |
24 |
25 #include "incls/_precompiled.incl" |
25 #include "precompiled.hpp" |
26 #include "incls/_genMarkSweep.cpp.incl" |
26 #include "classfile/javaClasses.hpp" |
|
27 #include "classfile/symbolTable.hpp" |
|
28 #include "classfile/systemDictionary.hpp" |
|
29 #include "classfile/vmSymbols.hpp" |
|
30 #include "code/codeCache.hpp" |
|
31 #include "code/icBuffer.hpp" |
|
32 #include "gc_interface/collectedHeap.inline.hpp" |
|
33 #include "memory/genCollectedHeap.hpp" |
|
34 #include "memory/genMarkSweep.hpp" |
|
35 #include "memory/genOopClosures.inline.hpp" |
|
36 #include "memory/generation.inline.hpp" |
|
37 #include "memory/modRefBarrierSet.hpp" |
|
38 #include "memory/referencePolicy.hpp" |
|
39 #include "memory/space.hpp" |
|
40 #include "oops/instanceRefKlass.hpp" |
|
41 #include "oops/oop.inline.hpp" |
|
42 #include "prims/jvmtiExport.hpp" |
|
43 #include "runtime/fprofiler.hpp" |
|
44 #include "runtime/handles.inline.hpp" |
|
45 #include "runtime/synchronizer.hpp" |
|
46 #include "runtime/vmThread.hpp" |
|
47 #include "utilities/copy.hpp" |
|
48 #include "utilities/events.hpp" |
|
49 #ifdef TARGET_OS_FAMILY_linux |
|
50 # include "thread_linux.inline.hpp" |
|
51 #endif |
|
52 #ifdef TARGET_OS_FAMILY_solaris |
|
53 # include "thread_solaris.inline.hpp" |
|
54 #endif |
|
55 #ifdef TARGET_OS_FAMILY_windows |
|
56 # include "thread_windows.inline.hpp" |
|
57 #endif |
27 |
58 |
28 void GenMarkSweep::invoke_at_safepoint(int level, ReferenceProcessor* rp, |
59 void GenMarkSweep::invoke_at_safepoint(int level, ReferenceProcessor* rp, |
29 bool clear_all_softrefs) { |
60 bool clear_all_softrefs) { |
30 assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint"); |
61 assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint"); |
31 |
62 |