comparison src/share/vm/classfile/systemDictionary.cpp @ 1039:987e948ebbc8

6815692: method handle code needs some cleanup (post-6655638) Summary: correctly raise exceptions, support safe bitwise "raw" conversions, fix bugs revealed by VerifyMethodHandles, remove dead code, improve debugging support Reviewed-by: never, twisti
author jrose
date Sat, 17 Oct 2009 19:51:05 -0700
parents 54b3b351d6f9
children 389049f3f393 a75edfd400ea 0c3f888b7636
comparison
equal deleted inserted replaced
1038:71fdc5052e49 1039:987e948ebbc8
1961 1961
1962 WKID meth_group_start = WK_KLASS_ENUM_NAME(MethodHandle_klass); 1962 WKID meth_group_start = WK_KLASS_ENUM_NAME(MethodHandle_klass);
1963 WKID meth_group_end = WK_KLASS_ENUM_NAME(WrongMethodTypeException_klass); 1963 WKID meth_group_end = WK_KLASS_ENUM_NAME(WrongMethodTypeException_klass);
1964 initialize_wk_klasses_until(meth_group_start, scan, CHECK); 1964 initialize_wk_klasses_until(meth_group_start, scan, CHECK);
1965 if (EnableMethodHandles) { 1965 if (EnableMethodHandles) {
1966 initialize_wk_klasses_through(meth_group_start, scan, CHECK); 1966 initialize_wk_klasses_through(meth_group_end, scan, CHECK);
1967 } 1967 }
1968 if (_well_known_klasses[meth_group_start] == NULL) { 1968 if (_well_known_klasses[meth_group_start] == NULL) {
1969 // Skip the rest of the method handle classes, if MethodHandle is not loaded. 1969 // Skip the rest of the method handle classes, if MethodHandle is not loaded.
1970 scan = WKID(meth_group_end+1); 1970 scan = WKID(meth_group_end+1);
1971 } 1971 }