--- old/src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp 2015-02-06 12:38:23.576202430 +0100 +++ new/src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp 2015-02-06 12:38:23.484205628 +0100 @@ -34,7 +34,9 @@ // The following methods are used by the parallel scavenge collector VM_ParallelGCFailedAllocation::VM_ParallelGCFailedAllocation(size_t word_size, uint gc_count) : - VM_CollectForAllocation(word_size, gc_count, GCCause::_allocation_failure) {} + VM_CollectForAllocation(word_size, gc_count, GCCause::_allocation_failure) { + assert(word_size != 0, "An allocation should always be requested with this operation."); +} void VM_ParallelGCFailedAllocation::doit() { SvcGCMarker sgcm(SvcGCMarker::MINOR);