< prev index next >

src/share/vm/gc_implementation/parallelScavenge/psPromotionLAB.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 122,131 **** --- 122,132 ---- // The 'new_top>obj' check is needed to detect overflow of obj+size. if (new_top > obj && new_top <= end()) { set_top(new_top); assert(is_object_aligned((intptr_t)obj) && is_object_aligned((intptr_t)new_top), "checking alignment"); + assert(_start_array->covered_region().contains(MemRegion(obj, size)), "Allocated beyond end of covered region"); _start_array->allocate_block(obj); return obj; } return NULL;
< prev index next >