hotspot/agent/src/share/classes/sun/jvm/hotspot/utilities/PointerFinder.java
changeset 5686 5435e77aa3df
parent 1 489c9b5090e2
child 5702 201c5cde25bb
equal deleted inserted replaced
5539:261ecc5bb65e 5686:5435e77aa3df
     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       }