Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/code/oopRecorder.hpp
          +++ new/src/share/vm/code/oopRecorder.hpp
   1    1  /*
   2      - * Copyright 1998-2005 Sun Microsystems, Inc.  All Rights Reserved.
        2 + * Copyright 1998-2010 Sun Microsystems, Inc.  All Rights Reserved.
   3    3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4    4   *
   5    5   * This code is free software; you can redistribute it and/or modify it
   6    6   * under the terms of the GNU General Public License version 2 only, as
   7    7   * published by the Free Software Foundation.
   8    8   *
   9    9   * This code is distributed in the hope that it will be useful, but WITHOUT
  10   10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11   11   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12   12   * version 2 for more details (a copy is included in the LICENSE file that
↓ open down ↓ 50 lines elided ↑ open up ↑
  63   63    int oop_size();
  64   64  
  65   65    // Retrieve the oop handle at a given index.
  66   66    jobject handle_at(int index);
  67   67  
  68   68    int element_count() {
  69   69      // there is always a NULL virtually present as first object
  70   70      return _handles->length() + first_index;
  71   71    }
  72   72  
  73      -  // copy the generated oop table to CodeBlob
  74      -  void copy_to(CodeBlob* code);  // => code->copy_oops(_handles)
       73 +  // copy the generated oop table to nmethod
       74 +  void copy_to(nmethod* nm);  // => code->copy_oops(_handles)
  75   75  
  76   76    bool is_unused() { return _handles == NULL && !_complete; }
  77   77  #ifdef ASSERT
  78   78    bool is_complete() { return _complete; }
  79   79  #endif
  80   80  
  81   81   private:
  82   82    // leaky hash table of handle => index, to help detect duplicate insertion
  83   83    class IndexCache: public ResourceObj {
  84   84      // This class is only used by the OopRecorder class.
↓ open down ↓ 52 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX