# HG changeset patch # User Thomas Wuerthinger # Date 1332349541 -3600 # Node ID 667c7bc2435bafd7d7e2cc4d763ec22f11f1fd0d # Parent 8ee021ee75dbe4f02da97f91930cd29ae157ada9 Fix C++ code to allow successful build on Windows. diff -r 8ee021ee75db -r 667c7bc2435b src/share/vm/runtime/deoptimization.cpp --- 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) { diff -r 8ee021ee75db -r 667c7bc2435b src/share/vm/utilities/macros.hpp --- 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