comparison agent/src/share/classes/sun/jvm/hotspot/utilities/PointerFinder.java @ 1579:e9ff18c4ace7

Merge
author jrose
date Wed, 02 Jun 2010 22:45:42 -0700
parents c18cbe5936b8 1a5913bf5e19
children 3e8fbc61cee8
comparison
equal deleted inserted replaced
1562:dfe27f03244a 1579:e9ff18c4ace7
1 /* 1 /*
2 * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. 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 }