提交 2a5b3b5e 编写于 作者: Y ysr

6892749: assert(UseParNewGC || UseSerialGC || UseConcMarkSweepGC, "...") fails

Summary: Removed the assert: UseSerialGC is not necessarily always set when serial gc is being used.
Reviewed-by: jcoomes, jmasa, tonyp
上级 349bfec0
...@@ -266,8 +266,11 @@ public: ...@@ -266,8 +266,11 @@ public:
// only and may need to be re-examined in case other // only and may need to be re-examined in case other
// kinds of collectors are implemented in the future. // kinds of collectors are implemented in the future.
virtual bool can_elide_initializing_store_barrier(oop new_obj) { virtual bool can_elide_initializing_store_barrier(oop new_obj) {
assert(UseParNewGC || UseSerialGC || UseConcMarkSweepGC, // We wanted to assert that:-
"Check can_elide_initializing_store_barrier() for this collector"); // assert(UseParNewGC || UseSerialGC || UseConcMarkSweepGC,
// "Check can_elide_initializing_store_barrier() for this collector");
// but unfortunately the flag UseSerialGC need not necessarily always
// be set when DefNew+Tenured are being used.
return is_in_youngest((void*)new_obj); return is_in_youngest((void*)new_obj);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册