Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp @ 665:c89f86385056
6814659: separable cleanups and subroutines for 6655638
Summary: preparatory but separable changes for method handles
Reviewed-by: kvn, never
author | jrose |
---|---|
date | Fri, 20 Mar 2009 23:19:36 -0700 |
parents | 660978a2a31a |
children | df6caf649ff7 |
comparison
equal
deleted
inserted
replaced
647:bd441136a5ce | 665: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); |