Print this page
rev 6900 : 8048169: Change 8037816 breaks HS build on PPC64 and CPP-Interpreter platforms
Summary: Fix the matching of format string parameter types to the actual argument types for the PPC64 and CPP-Interpreter files in the same way as 8037816 already did it for all the other files
Reviewed-by: stefank, coleenp, dholmes

Split Split Close
Expand all
Collapse all
          --- old/hotspot/src/share/vm/interpreter/bytecodeInterpreterProfiling.hpp
          +++ new/hotspot/src/share/vm/interpreter/bytecodeInterpreterProfiling.hpp
   1    1  /*
   2      - * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
   3      - * Copyright 2012, 2013 SAP AG. All rights reserved.
        2 + * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
        3 + * Copyright 2012, 2014 SAP AG. All rights reserved.
   4    4   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5    5   *
   6    6   * This code is free software; you can redistribute it and/or modify it
   7    7   * under the terms of the GNU General Public License version 2 only, as
   8    8   * published by the Free Software Foundation.
   9    9   *
  10   10   * This code is distributed in the hope that it will be useful, but WITHOUT
  11   11   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12   12   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13   13   * version 2 for more details (a copy is included in the LICENSE file that
↓ open down ↓ 65 lines elided ↑ open up ↑
  79   79  #define MDX()        (istate->mdx())
  80   80  #define SET_MDX(mdx)                                                           \
  81   81    if (TraceProfileInterpreter) {                                               \
  82   82      /* Let it look like TraceBytecodes' format. */                             \
  83   83      tty->print_cr("[%d]           %4d  "                                       \
  84   84                    "mdx " PTR_FORMAT "(%d)"                                     \
  85   85                    "  "                                                         \
  86   86                    " \t-> " PTR_FORMAT "(%d)",                                  \
  87   87                  (int) THREAD->osthread()->thread_id(),                         \
  88   88                  BCI(),                                                         \
  89      -                MDX(),                                                         \
       89 +                p2i(MDX()),                                                    \
  90   90                  (MDX() == NULL                                                 \
  91   91                   ? 0                                                           \
  92   92                   : istate->method()->method_data()->dp_to_di((address)MDX())), \
  93      -                mdx,                                                           \
       93 +                p2i(mdx),                                                      \
  94   94                  istate->method()->method_data()->dp_to_di((address)mdx)        \
  95   95                  );                                                             \
  96   96    };                                                                           \
  97   97    istate->set_mdx(mdx);
  98   98  
  99   99  
 100  100  // Dumps the profiling method data for the current method.
 101  101  #ifdef PRODUCT
 102  102  #define BI_PROFILE_PRINT_METHOD_DATA()
 103  103  #else  // PRODUCT
 104  104  #define BI_PROFILE_PRINT_METHOD_DATA()                                         \
 105  105    {                                                                            \
 106  106      ttyLocker ttyl;                                                            \
 107  107      MethodData *md = istate->method()->method_data();                          \
 108  108      tty->cr();                                                                 \
 109  109      tty->print("method data at mdx " PTR_FORMAT "(0) for",                     \
 110      -               md->data_layout_at(md->bci_to_di(0)));                          \
      110 +               p2i(md->data_layout_at(md->bci_to_di(0))));                     \
 111  111      istate->method()->print_short_name(tty);                                   \
 112  112      tty->cr();                                                                 \
 113  113      if (md != NULL) {                                                          \
 114  114        md->print_data_on(tty);                                                  \
 115  115        address mdx = (address) MDX();                                           \
 116  116        if (mdx != NULL) {                                                       \
 117  117          tty->print_cr("current mdx " PTR_FORMAT "(%d)",                        \
 118      -                      mdx,                                                     \
      118 +                      p2i(mdx),                                                \
 119  119                        istate->method()->method_data()->dp_to_di(mdx));         \
 120  120        }                                                                        \
 121  121      } else {                                                                   \
 122  122        tty->print_cr("no method data");                                         \
 123  123      }                                                                          \
 124  124    }
 125  125  #endif // PRODUCT
 126  126  
 127  127  
 128  128  // Gets or creates the profiling method data and initializes mdx.
↓ open down ↓ 180 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX