6705523: Fix for 6695506 will violate spec when used in JDK6

Make max classfile version number dependent on JDK version

Reviewed-by: acorn, never
This commit is contained in:
Keith McGuigan 2008-05-22 13:03:52 -04:00
parent 3d93819395
commit c966634470
3 changed files with 37 additions and 9 deletions

View file

@ -2721,7 +2721,8 @@ nmethod *SharedRuntime::generate_dtrace_nmethod(
#endif /* ASSERT */
VMRegPair zero;
zero.set2(G0->as_VMReg());
const Register g0 = G0; // without this we get a compiler warning (why??)
zero.set2(g0->as_VMReg());
int c_arg, j_arg;