equal
deleted
inserted
replaced
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 } |