Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/utilities/PointerFinder.java @ 1563:1a5913bf5e19
6951083: oops and relocations should part of nmethod not CodeBlob
Summary: This moves the oops from Codeblob to nmethod.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Thu, 20 May 2010 06:34:23 -0700 |
parents | a61af66fc99e |
children | e9ff18c4ace7 |
comparison
equal
deleted
inserted
replaced
1544:1a88d3c58e1d | 1563:1a5913bf5e19 |
---|---|
1 /* | 1 /* |
2 * Copyright 2000-2004 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 2000-2010 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. |
96 if (Assert.ASSERTS_ENABLED) { | 96 if (Assert.ASSERTS_ENABLED) { |
97 Assert.that(loc.blob != null, "Should have found CodeBlob"); | 97 Assert.that(loc.blob != null, "Should have found CodeBlob"); |
98 } | 98 } |
99 loc.inBlobInstructions = loc.blob.instructionsContains(a); | 99 loc.inBlobInstructions = loc.blob.instructionsContains(a); |
100 loc.inBlobData = loc.blob.dataContains(a); | 100 loc.inBlobData = loc.blob.dataContains(a); |
101 loc.inBlobOops = loc.blob.oopsContains(a); | 101 |
102 if (loc.blob.isNMethod()) { | |
103 NMethod nm = (NMethod) loc.blob; | |
104 loc.inBlobOops = nm.oopsContains(a); | |
105 } | |
106 | |
102 loc.inBlobUnknownLocation = (!(loc.inBlobInstructions || | 107 loc.inBlobUnknownLocation = (!(loc.inBlobInstructions || |
103 loc.inBlobData || | 108 loc.inBlobData || |
104 loc.inBlobOops)); | 109 loc.inBlobOops)); |
105 return loc; | 110 return loc; |
106 } | 111 } |