-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8341094: Clean up relax_verify in ClassFileParser #21954
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
|
@@ -52,7 +52,7 @@ class Verifier : AllStatic { | |
// Return false if the class is loaded by the bootstrap loader, | ||
// or if defineClass was called requesting skipping verification | ||
// -Xverify:all overrides this value | ||
Comment on lines
52
to
54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment doesn't describe the new operation of this method. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right. There was an old change that made defineClass explicitly disable verification. That code is gone now. |
||
static bool should_verify_for(oop class_loader, bool should_verify_class); | ||
static bool should_verify_for(oop class_loader); | ||
|
||
// Relax certain access checks to enable some broken 1.1 apps to run on 1.2. | ||
static bool relax_access_for(oop class_loader); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where, and how, is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's passed into the ClassFileStream constructor with default value true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this and fixed all the constructor calls.