Mercurial > hg > truffle
changeset 5142:667c7bc2435b
Fix C++ code to allow successful build on Windows.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 21 Mar 2012 18:05:41 +0100 |
parents | 8ee021ee75db |
children | f5511facb897 c5eaee66bfa1 |
files | src/share/vm/runtime/deoptimization.cpp src/share/vm/utilities/macros.hpp |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.cpp Wed Mar 21 14:57:06 2012 +0100 +++ b/src/share/vm/runtime/deoptimization.cpp Wed Mar 21 18:05:41 2012 +0100 @@ -209,7 +209,6 @@ #ifdef GRAAL PcDesc* pc_desc = ((nmethod*) deoptee.cb())->pc_desc_at(deoptee.pc()); - int decode_offset; if (pc_desc != NULL && pc_desc->leaf_graph_id() != -1) { GraalCompiler* compiler = (GraalCompiler*) ((nmethod*) deoptee.cb())->compiler(); if (PrintDeoptimizationDetails) {
--- a/src/share/vm/utilities/macros.hpp Wed Mar 21 14:57:06 2012 +0100 +++ b/src/share/vm/utilities/macros.hpp Wed Mar 21 18:05:41 2012 +0100 @@ -75,10 +75,10 @@ #endif // COMPILER2 #ifdef GRAAL -#define GRAAL_ONLY(code...) code +#define GRAAL_ONLY(code) code #define NOT_GRAAL(code) #else -#define GRAAL_ONLY(code...) +#define GRAAL_ONLY(code) #define NOT_GRAAL(code) code #endif