equal
deleted
inserted
replaced
26 #define SHARE_GC_SHARED_GCVMOPERATIONS_HPP |
26 #define SHARE_GC_SHARED_GCVMOPERATIONS_HPP |
27 |
27 |
28 #include "gc/shared/collectedHeap.hpp" |
28 #include "gc/shared/collectedHeap.hpp" |
29 #include "gc/shared/genCollectedHeap.hpp" |
29 #include "gc/shared/genCollectedHeap.hpp" |
30 #include "memory/heapInspection.hpp" |
30 #include "memory/heapInspection.hpp" |
31 #include "memory/metaspace/metaspaceEnums.hpp" |
31 #include "memory/metaspace.hpp" |
32 #include "prims/jvmtiExport.hpp" |
32 #include "prims/jvmtiExport.hpp" |
33 #include "runtime/handles.hpp" |
33 #include "runtime/handles.hpp" |
34 #include "runtime/jniHandles.hpp" |
34 #include "runtime/jniHandles.hpp" |
35 #include "runtime/synchronizer.hpp" |
35 #include "runtime/synchronizer.hpp" |
36 #include "runtime/vmOperations.hpp" |
36 #include "runtime/vmOperations.hpp" |
205 |
205 |
206 class VM_CollectForMetadataAllocation: public VM_GC_Operation { |
206 class VM_CollectForMetadataAllocation: public VM_GC_Operation { |
207 private: |
207 private: |
208 MetaWord* _result; |
208 MetaWord* _result; |
209 size_t _size; // size of object to be allocated |
209 size_t _size; // size of object to be allocated |
210 metaspace::MetadataType _mdtype; |
210 Metaspace::MetadataType _mdtype; |
211 ClassLoaderData* _loader_data; |
211 ClassLoaderData* _loader_data; |
212 |
212 |
213 public: |
213 public: |
214 VM_CollectForMetadataAllocation(ClassLoaderData* loader_data, |
214 VM_CollectForMetadataAllocation(ClassLoaderData* loader_data, |
215 size_t size, |
215 size_t size, |
216 metaspace::MetadataType mdtype, |
216 Metaspace::MetadataType mdtype, |
217 uint gc_count_before, |
217 uint gc_count_before, |
218 uint full_gc_count_before, |
218 uint full_gc_count_before, |
219 GCCause::Cause gc_cause); |
219 GCCause::Cause gc_cause); |
220 |
220 |
221 virtual VMOp_Type type() const { return VMOp_CollectForMetadataAllocation; } |
221 virtual VMOp_Type type() const { return VMOp_CollectForMetadataAllocation; } |