mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8025580: Temporary flags: UseNewReflection and ReflectionWrapResolutionErrors
The fix removes all UseNewReflection/ReflectionWrapResolutionErrors occurrences/logic and adds them into the list of obsolete_jvm_flags in arguments.cpp. Reviewed-by: coleenp, hseigel
This commit is contained in:
parent
54da05d840
commit
cc3c656cf1
13 changed files with 53 additions and 99 deletions
|
@ -1019,13 +1019,11 @@ bool Method::should_not_be_cached() const {
|
|||
* security related stack walks (like Reflection.getCallerClass).
|
||||
*/
|
||||
bool Method::is_ignored_by_security_stack_walk() const {
|
||||
const bool use_new_reflection = JDK_Version::is_gte_jdk14x_version() && UseNewReflection;
|
||||
|
||||
if (intrinsic_id() == vmIntrinsics::_invoke) {
|
||||
// This is Method.invoke() -- ignore it
|
||||
return true;
|
||||
}
|
||||
if (use_new_reflection &&
|
||||
if (JDK_Version::is_gte_jdk14x_version() &&
|
||||
method_holder()->is_subclass_of(SystemDictionary::reflect_MethodAccessorImpl_klass())) {
|
||||
// This is an auxilary frame -- ignore it
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue