Mercurial > hg > openjdk > hsx16
changeset 945:164505f3849e
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
author | ysr |
---|---|
date | Tue, 20 Oct 2009 00:00:23 -0700 |
parents | aa001a20bd61 |
children | d43a7bf86266 |
files | src/share/vm/memory/genCollectedHeap.hpp |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/memory/genCollectedHeap.hpp Fri Oct 16 02:05:46 2009 -0700 +++ b/src/share/vm/memory/genCollectedHeap.hpp Tue Oct 20 00:00:23 2009 -0700 @@ -266,8 +266,11 @@ // only and may need to be re-examined in case other // kinds of collectors are implemented in the future. virtual bool can_elide_initializing_store_barrier(oop new_obj) { - assert(UseParNewGC || UseSerialGC || UseConcMarkSweepGC, - "Check can_elide_initializing_store_barrier() for this collector"); + // We wanted to assert that:- + // 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); }