src/share/vm/classfile/verifier.hpp

changeset 9969
40f45911050f
parent 7643
695017a614d5
child 10012
73d58f4c918a
equal deleted inserted replaced
9968:9a8c9d2291bb 9969:40f45911050f
1 /* 1 /*
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 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.
55 // Return false if the class is loaded by the bootstrap loader, 55 // Return false if the class is loaded by the bootstrap loader,
56 // or if defineClass was called requesting skipping verification 56 // or if defineClass was called requesting skipping verification
57 // -Xverify:all/none override this value 57 // -Xverify:all/none override this value
58 static bool should_verify_for(oop class_loader, bool should_verify_class); 58 static bool should_verify_for(oop class_loader, bool should_verify_class);
59 59
60 // Relax certain verifier checks to enable some broken 1.1 apps to run on 1.2. 60 // Relax certain access checks to enable some broken 1.1 apps to run on 1.2.
61 static bool relax_verify_for(oop class_loader); 61 static bool relax_access_for(oop class_loader);
62 62
63 private: 63 private:
64 static bool is_eligible_for_verification(instanceKlassHandle klass, bool should_verify_class); 64 static bool is_eligible_for_verification(instanceKlassHandle klass, bool should_verify_class);
65 static Symbol* inference_verify( 65 static Symbol* inference_verify(
66 instanceKlassHandle klass, char* msg, size_t msg_len, TRAPS); 66 instanceKlassHandle klass, char* msg, size_t msg_len, TRAPS);

mercurial