src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp

changeset 1100
c89f86385056
parent 1077
660978a2a31a
child 1280
df6caf649ff7
equal deleted inserted replaced
1082:bd441136a5ce 1100:c89f86385056
1 /* 1 /*
2 * Copyright 2001-2008 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 2001-2009 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
823 823
824 HeapWord* ParallelScavengeHeap::block_start(const void* addr) const { 824 HeapWord* ParallelScavengeHeap::block_start(const void* addr) const {
825 if (young_gen()->is_in_reserved(addr)) { 825 if (young_gen()->is_in_reserved(addr)) {
826 assert(young_gen()->is_in(addr), 826 assert(young_gen()->is_in(addr),
827 "addr should be in allocated part of young gen"); 827 "addr should be in allocated part of young gen");
828 if (Debugging) return NULL; // called from find() in debug.cpp
828 Unimplemented(); 829 Unimplemented();
829 } else if (old_gen()->is_in_reserved(addr)) { 830 } else if (old_gen()->is_in_reserved(addr)) {
830 assert(old_gen()->is_in(addr), 831 assert(old_gen()->is_in(addr),
831 "addr should be in allocated part of old gen"); 832 "addr should be in allocated part of old gen");
832 return old_gen()->start_array()->object_start((HeapWord*)addr); 833 return old_gen()->start_array()->object_start((HeapWord*)addr);

mercurial