Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/oops/cpCacheOop.cpp
          +++ new/src/share/vm/oops/cpCacheOop.cpp
   1    1  /*
   2      - * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
        2 + * Copyright (c) 1998, 2012, Oracle and/or its affiliates. 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 ↓ 484 lines elided ↑ open up ↑
 497  497      // the interesting class
 498  498      return false;
 499  499    }
 500  500  
 501  501    // the method is in the interesting class so the entry is interesting
 502  502    return true;
 503  503  }
 504  504  
 505  505  void ConstantPoolCacheEntry::print(outputStream* st, int index) const {
 506  506    // print separator
 507      -  if (index == 0) tty->print_cr("                 -------------");
      507 +  if (index == 0) st->print_cr("                 -------------");
 508  508    // print entry
 509      -  tty->print("%3d  ("PTR_FORMAT")  ", index, (intptr_t)this);
      509 +  st->print("%3d  ("PTR_FORMAT")  ", index, (intptr_t)this);
 510  510    if (is_secondary_entry())
 511      -    tty->print_cr("[%5d|secondary]", main_entry_index());
      511 +    st->print_cr("[%5d|secondary]", main_entry_index());
 512  512    else
 513      -    tty->print_cr("[%02x|%02x|%5d]", bytecode_2(), bytecode_1(), constant_pool_index());
 514      -  tty->print_cr("                 [   "PTR_FORMAT"]", (intptr_t)(oop)_f1);
 515      -  tty->print_cr("                 [   "PTR_FORMAT"]", (intptr_t)_f2);
 516      -  tty->print_cr("                 [   "PTR_FORMAT"]", (intptr_t)_flags);
 517      -  tty->print_cr("                 -------------");
      513 +    st->print_cr("[%02x|%02x|%5d]", bytecode_2(), bytecode_1(), constant_pool_index());
      514 +  st->print_cr("                 [   "PTR_FORMAT"]", (intptr_t)(oop)_f1);
      515 +  st->print_cr("                 [   "PTR_FORMAT"]", (intptr_t)_f2);
      516 +  st->print_cr("                 [   "PTR_FORMAT"]", (intptr_t)_flags);
      517 +  st->print_cr("                 -------------");
 518  518  }
 519  519  
 520  520  void ConstantPoolCacheEntry::verify(outputStream* st) const {
 521  521    // not implemented yet
 522  522  }
 523  523  
 524  524  // Implementation of ConstantPoolCache
 525  525  
 526  526  void constantPoolCacheOopDesc::initialize(intArray& inverse_index_map) {
 527  527    assert(inverse_index_map.length() == length(), "inverse index map must have same length as cache");
↓ open down ↓ 52 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX