8051398: jvmti tests fieldacc002, fieldmod002 fail in nightly with errors: (watch#0) wrong location

Didn't handle NULL bcp for native methods

Reviewed-by: dcubed, sspitsyn
This commit is contained in:
Coleen Phillimore 2014-07-31 00:50:55 +00:00
parent 037f9fdccf
commit d230f0b4fd
4 changed files with 11 additions and 13 deletions

View file

@ -648,7 +648,8 @@ class Method : public Metadata {
// Returns the byte code index from the byte code pointer
int bci_from(address bcp) const;
address bcp_from(int bci) const;
address bcp_from(int bci) const;
address bcp_from(address bcp) const;
int validate_bci_from_bcp(address bcp) const;
int validate_bci(int bci) const;