1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
1346 Symbol* signature = jvf->method()->signature(); |
1346 Symbol* signature = jvf->method()->signature(); |
1347 |
1347 |
1348 ResultTypeFinder rtf(signature); |
1348 ResultTypeFinder rtf(signature); |
1349 TosState fr_tos = as_TosState(rtf.type()); |
1349 TosState fr_tos = as_TosState(rtf.type()); |
1350 if (fr_tos != tos) { |
1350 if (fr_tos != tos) { |
1351 if (tos != itos || (fr_tos != btos && fr_tos != ctos && fr_tos != stos)) { |
1351 if (tos != itos || (fr_tos != btos && fr_tos != ztos && fr_tos != ctos && fr_tos != stos)) { |
1352 return JVMTI_ERROR_TYPE_MISMATCH; |
1352 return JVMTI_ERROR_TYPE_MISMATCH; |
1353 } |
1353 } |
1354 } |
1354 } |
1355 |
1355 |
1356 // Check that the jobject class matches the return type signature. |
1356 // Check that the jobject class matches the return type signature. |