24
25 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "gc_implementation/shared/vmGCOperations.hpp"
29 #include "memory/gcLocker.inline.hpp"
30 #include "memory/genCollectedHeap.hpp"
31 #include "memory/oopFactory.hpp"
32 #include "oops/instanceKlass.hpp"
33 #include "oops/instanceRefKlass.hpp"
34 #include "runtime/handles.inline.hpp"
35 #include "runtime/init.hpp"
36 #include "runtime/interfaceSupport.hpp"
37 #include "utilities/dtrace.hpp"
38 #include "utilities/preserveException.hpp"
39 #include "utilities/macros.hpp"
40 #if INCLUDE_ALL_GCS
41 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
42 #endif // INCLUDE_ALL_GCS
43
44 // The same dtrace probe can't be inserted in two different files, so we
45 // have to call it here, so it's only in one file. Can't create new probes
46 // for the other file anymore. The dtrace probes have to remain stable.
47 void VM_GC_Operation::notify_gc_begin(bool full) {
48 HOTSPOT_GC_BEGIN(
49 full);
50 HS_DTRACE_WORKAROUND_TAIL_CALL_BUG();
51 }
52
53 void VM_GC_Operation::notify_gc_end() {
54 HOTSPOT_GC_END();
55 HS_DTRACE_WORKAROUND_TAIL_CALL_BUG();
56 }
57
58 void VM_GC_Operation::acquire_pending_list_lock() {
59 // we may enter this with pending exception set
60 InstanceRefKlass::acquire_pending_list_lock(&_pending_list_basic_lock);
61 }
62
63
|
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "gc_implementation/shared/vmGCOperations.hpp"
29 #include "memory/gcLocker.inline.hpp"
30 #include "memory/genCollectedHeap.hpp"
31 #include "memory/oopFactory.hpp"
32 #include "oops/instanceKlass.hpp"
33 #include "oops/instanceRefKlass.hpp"
34 #include "runtime/handles.inline.hpp"
35 #include "runtime/init.hpp"
36 #include "runtime/interfaceSupport.hpp"
37 #include "utilities/dtrace.hpp"
38 #include "utilities/preserveException.hpp"
39 #include "utilities/macros.hpp"
40 #if INCLUDE_ALL_GCS
41 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
42 #endif // INCLUDE_ALL_GCS
43
44 VM_GC_Operation::~VM_GC_Operation() {
45 CollectedHeap* ch = Universe::heap();
46 ch->collector_policy()->set_all_soft_refs_clear(false);
47 }
48
49 // The same dtrace probe can't be inserted in two different files, so we
50 // have to call it here, so it's only in one file. Can't create new probes
51 // for the other file anymore. The dtrace probes have to remain stable.
52 void VM_GC_Operation::notify_gc_begin(bool full) {
53 HOTSPOT_GC_BEGIN(
54 full);
55 HS_DTRACE_WORKAROUND_TAIL_CALL_BUG();
56 }
57
58 void VM_GC_Operation::notify_gc_end() {
59 HOTSPOT_GC_END();
60 HS_DTRACE_WORKAROUND_TAIL_CALL_BUG();
61 }
62
63 void VM_GC_Operation::acquire_pending_list_lock() {
64 // we may enter this with pending exception set
65 InstanceRefKlass::acquire_pending_list_lock(&_pending_list_basic_lock);
66 }
67
68
|