31 #include "classfile/systemDictionary.hpp"
32 #include "classfile/verifier.hpp"
33 #include "classfile/vmSymbols.hpp"
34 #include "interpreter/bytecodes.hpp"
35 #include "interpreter/bytecodeStream.hpp"
36 #include "logging/log.hpp"
37 #include "memory/oopFactory.hpp"
38 #include "memory/resourceArea.hpp"
39 #include "oops/instanceKlass.hpp"
40 #include "oops/oop.inline.hpp"
41 #include "oops/typeArrayOop.hpp"
42 #include "prims/jvm.h"
43 #include "runtime/fieldDescriptor.hpp"
44 #include "runtime/handles.inline.hpp"
45 #include "runtime/interfaceSupport.hpp"
46 #include "runtime/javaCalls.hpp"
47 #include "runtime/orderAccess.inline.hpp"
48 #include "runtime/os.hpp"
49 #include "runtime/thread.hpp"
50 #include "services/threadService.hpp"
51 #include "utilities/bytes.hpp"
52 #include "logging/log.hpp"
53
54 #define NOFAILOVER_MAJOR_VERSION 51
55 #define NONZERO_PADDING_BYTES_IN_SWITCH_MAJOR_VERSION 51
56 #define STATIC_METHOD_IN_INTERFACE_MAJOR_VERSION 52
57 #define MAX_ARRAY_DIMENSIONS 255
58
59 // Access to external entry for VerifyClassCodes - old byte code verifier
60
61 extern "C" {
62 typedef jboolean (*verify_byte_codes_fn_t)(JNIEnv *, jclass, char *, jint);
63 typedef jboolean (*verify_byte_codes_fn_new_t)(JNIEnv *, jclass, char *, jint, jint);
64 }
65
66 static void* volatile _verify_byte_codes_fn = NULL;
67
68 static volatile jint _is_new_verify_byte_codes_fn = (jint) true;
69
70 static void* verify_byte_codes_fn() {
71 if (OrderAccess::load_ptr_acquire(&_verify_byte_codes_fn) == NULL) {
72 void *lib_handle = os::native_java_library();
|
31 #include "classfile/systemDictionary.hpp"
32 #include "classfile/verifier.hpp"
33 #include "classfile/vmSymbols.hpp"
34 #include "interpreter/bytecodes.hpp"
35 #include "interpreter/bytecodeStream.hpp"
36 #include "logging/log.hpp"
37 #include "memory/oopFactory.hpp"
38 #include "memory/resourceArea.hpp"
39 #include "oops/instanceKlass.hpp"
40 #include "oops/oop.inline.hpp"
41 #include "oops/typeArrayOop.hpp"
42 #include "prims/jvm.h"
43 #include "runtime/fieldDescriptor.hpp"
44 #include "runtime/handles.inline.hpp"
45 #include "runtime/interfaceSupport.hpp"
46 #include "runtime/javaCalls.hpp"
47 #include "runtime/orderAccess.inline.hpp"
48 #include "runtime/os.hpp"
49 #include "runtime/thread.hpp"
50 #include "services/threadService.hpp"
51 #include "utilities/align.hpp"
52 #include "utilities/bytes.hpp"
53
54 #define NOFAILOVER_MAJOR_VERSION 51
55 #define NONZERO_PADDING_BYTES_IN_SWITCH_MAJOR_VERSION 51
56 #define STATIC_METHOD_IN_INTERFACE_MAJOR_VERSION 52
57 #define MAX_ARRAY_DIMENSIONS 255
58
59 // Access to external entry for VerifyClassCodes - old byte code verifier
60
61 extern "C" {
62 typedef jboolean (*verify_byte_codes_fn_t)(JNIEnv *, jclass, char *, jint);
63 typedef jboolean (*verify_byte_codes_fn_new_t)(JNIEnv *, jclass, char *, jint, jint);
64 }
65
66 static void* volatile _verify_byte_codes_fn = NULL;
67
68 static volatile jint _is_new_verify_byte_codes_fn = (jint) true;
69
70 static void* verify_byte_codes_fn() {
71 if (OrderAccess::load_ptr_acquire(&_verify_byte_codes_fn) == NULL) {
72 void *lib_handle = os::native_java_library();
|