mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8231844: Enhance type signature characters in classfile_constants.h and improve the JVM to use type signature characters more consistently
Increase the use of type signature constants instead of hard coded characters within the JVM. Co-authored-by: John Rose <john.r.rose@oracle.com> Reviewed-by: coleenp, dholmes, fparain
This commit is contained in:
parent
0192c5a02f
commit
fce4320369
43 changed files with 371 additions and 326 deletions
|
@ -1361,7 +1361,7 @@ JvmtiEnvBase::check_top_frame(JavaThread* current_thread, JavaThread* java_threa
|
|||
NULL_CHECK(ob_k, JVMTI_ERROR_INVALID_OBJECT);
|
||||
|
||||
// Method return type signature.
|
||||
char* ty_sign = 1 + strchr(signature->as_C_string(), ')');
|
||||
char* ty_sign = 1 + strchr(signature->as_C_string(), JVM_SIGNATURE_ENDFUNC);
|
||||
|
||||
if (!VM_GetOrSetLocal::is_assignable(ty_sign, ob_k, current_thread)) {
|
||||
return JVMTI_ERROR_TYPE_MISMATCH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue