1.1 --- a/src/share/vm/utilities/dtrace.hpp Mon May 17 00:47:28 2010 -0700 1.2 +++ b/src/share/vm/utilities/dtrace.hpp Tue May 18 11:02:18 2010 -0700 1.3 @@ -29,6 +29,10 @@ 1.4 #define DTRACE_ONLY(x) x 1.5 #define NOT_DTRACE(x) 1.6 1.7 +// Work around dtrace tail call bug 6672627 until it is fixed in solaris 10. 1.8 +#define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG() \ 1.9 + do { volatile size_t dtrace_workaround_tail_call_bug = 1; } while (0) 1.10 + 1.11 #else // ndef SOLARIS || ndef DTRACE_ENABLED 1.12 1.13 #define DTRACE_ONLY(x) 1.14 @@ -41,6 +45,8 @@ 1.15 #define DTRACE_PROBE4(a,b,c,d,e,f) {;} 1.16 #define DTRACE_PROBE5(a,b,c,d,e,f,g) {;} 1.17 1.18 +#define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG() 1.19 + 1.20 #endif 1.21 1.22 #define HS_DTRACE_PROBE_FN(provider,name)\