# HG changeset patch # User jiangli # Date 1341528461 14400 # Node ID d68b1274b9ba986ddb73e2f3f17811a7d4cd36c8 # Parent f0b82641fb7e85800c52406b47b0952034e90ea8 7180914: Compilation warning after: 7172967: Eliminate the constMethod's _method backpointer to the methodOop. Summary: Use read_pointer(J...) to access from 'constMethod' base in name_for_methodOop(), libjvm_db.c. Reviewed-by: kvn, coleenp diff -r f0b82641fb7e -r d68b1274b9ba src/os/solaris/dtrace/libjvm_db.c --- a/src/os/solaris/dtrace/libjvm_db.c Mon Jul 02 04:19:22 2012 -0400 +++ b/src/os/solaris/dtrace/libjvm_db.c Thu Jul 05 18:47:41 2012 -0400 @@ -516,7 +516,7 @@ err = read_pointer(J, methodOopPtr + OFFSET_methodOopDesc_constMethod, &constMethod); CHECK_FAIL(err); - err = read_pointer(J->P, constMethod + OFFSET_constMethodOopDesc_constants, &constantPool); + err = read_pointer(J, constMethod + OFFSET_constMethodOopDesc_constants, &constantPool); CHECK_FAIL(err); /* To get name string */