mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
Merge
This commit is contained in:
commit
d6a9b93b5a
133 changed files with 1889 additions and 1307 deletions
|
@ -158,6 +158,16 @@ class ClassVerifier : public StackObj {
|
|||
methodHandle _method; // current method being verified
|
||||
VerificationType _this_type; // the verification type of the current class
|
||||
|
||||
// Some recursive calls from the verifier to the name resolver
|
||||
// can cause the current class to be re-verified and rewritten.
|
||||
// If this happens, the original verification should not continue,
|
||||
// because constant pool indexes will have changed.
|
||||
// The rewriter is preceded by the verifier. If the verifier throws
|
||||
// an error, rewriting is prevented. Also, rewriting always precedes
|
||||
// bytecode execution or compilation. Thus, is_rewritten implies
|
||||
// that a class has been verified and prepared for execution.
|
||||
bool was_recursively_verified() { return _klass->is_rewritten(); }
|
||||
|
||||
public:
|
||||
enum {
|
||||
BYTECODE_OFFSET = 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue