equal
deleted
inserted
replaced
271 // young gen and, a fortiori, for initializing stores to |
271 // young gen and, a fortiori, for initializing stores to |
272 // objects therein. This applies to DefNew+Tenured and ParNew+CMS |
272 // objects therein. This applies to DefNew+Tenured and ParNew+CMS |
273 // only and may need to be re-examined in case other |
273 // only and may need to be re-examined in case other |
274 // kinds of collectors are implemented in the future. |
274 // kinds of collectors are implemented in the future. |
275 virtual bool can_elide_initializing_store_barrier(oop new_obj) { |
275 virtual bool can_elide_initializing_store_barrier(oop new_obj) { |
276 // We wanted to assert that:- |
|
277 // assert(UseSerialGC || UseConcMarkSweepGC, |
|
278 // "Check can_elide_initializing_store_barrier() for this collector"); |
|
279 // but unfortunately the flag UseSerialGC need not necessarily always |
|
280 // be set when DefNew+Tenured are being used. |
|
281 return is_in_young(new_obj); |
276 return is_in_young(new_obj); |
282 } |
277 } |
283 |
278 |
284 // The "requestor" generation is performing some garbage collection |
279 // The "requestor" generation is performing some garbage collection |
285 // action for which it would be useful to have scratch space. The |
280 // action for which it would be useful to have scratch space. The |