hotspot/src/share/vm/code/oopRecorder.hpp
changeset 5686 5435e77aa3df
parent 1 489c9b5090e2
child 5702 201c5cde25bb
equal deleted inserted replaced
5539:261ecc5bb65e 5686:5435e77aa3df
     1 /*
     1 /*
     2  * Copyright 1998-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1998-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.
    68   int element_count() {
    68   int element_count() {
    69     // there is always a NULL virtually present as first object
    69     // there is always a NULL virtually present as first object
    70     return _handles->length() + first_index;
    70     return _handles->length() + first_index;
    71   }
    71   }
    72 
    72 
    73   // copy the generated oop table to CodeBlob
    73   // copy the generated oop table to nmethod
    74   void copy_to(CodeBlob* code);  // => code->copy_oops(_handles)
    74   void copy_to(nmethod* nm);  // => nm->copy_oops(_handles)
    75 
    75 
    76   bool is_unused() { return _handles == NULL && !_complete; }
    76   bool is_unused() { return _handles == NULL && !_complete; }
    77 #ifdef ASSERT
    77 #ifdef ASSERT
    78   bool is_complete() { return _complete; }
    78   bool is_complete() { return _complete; }
    79 #endif
    79 #endif