equal
deleted
inserted
replaced
164 protected: |
164 protected: |
165 size_t _word_size; // Size of object to be allocated (in number of words) |
165 size_t _word_size; // Size of object to be allocated (in number of words) |
166 HeapWord* _result; // Allocation result (NULL if allocation failed) |
166 HeapWord* _result; // Allocation result (NULL if allocation failed) |
167 |
167 |
168 public: |
168 public: |
169 VM_CollectForAllocation(size_t word_size, uint gc_count_before, GCCause::Cause cause) |
169 VM_CollectForAllocation(size_t word_size, uint gc_count_before, GCCause::Cause cause); |
170 : VM_GC_Operation(gc_count_before, cause), _result(NULL), _word_size(word_size) {} |
|
171 |
170 |
172 HeapWord* result() const { |
171 HeapWord* result() const { |
173 return _result; |
172 return _result; |
174 } |
173 } |
175 }; |
174 }; |
218 VM_CollectForMetadataAllocation(ClassLoaderData* loader_data, |
217 VM_CollectForMetadataAllocation(ClassLoaderData* loader_data, |
219 size_t size, |
218 size_t size, |
220 Metaspace::MetadataType mdtype, |
219 Metaspace::MetadataType mdtype, |
221 uint gc_count_before, |
220 uint gc_count_before, |
222 uint full_gc_count_before, |
221 uint full_gc_count_before, |
223 GCCause::Cause gc_cause) |
222 GCCause::Cause gc_cause); |
224 : VM_GC_Operation(gc_count_before, gc_cause, full_gc_count_before, true), |
|
225 _loader_data(loader_data), _size(size), _mdtype(mdtype), _result(NULL) { |
|
226 } |
|
227 |
223 |
228 virtual VMOp_Type type() const { return VMOp_CollectForMetadataAllocation; } |
224 virtual VMOp_Type type() const { return VMOp_CollectForMetadataAllocation; } |
229 virtual void doit(); |
225 virtual void doit(); |
230 MetaWord* result() const { return _result; } |
226 MetaWord* result() const { return _result; } |
231 |
227 |