Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jdk17u
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
openjdk
jdk17u
Commits
d7c67fc3
Commit
d7c67fc3
authored
Jan 29, 2024
by
María Arias de Reyna
Committed by
Severin Gehwolf
Jan 29, 2024
Browse files
Options
Downloads
Patches
Plain Diff
8261404: Class.getReflectionFactory() is not thread-safe
Backport-of: 905b7639424a0fa80f81f734f6fdae1b5018a14a
parent
34326989
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/java.base/share/classes/java/lang/Class.java
+6
-5
6 additions, 5 deletions
src/java.base/share/classes/java/lang/Class.java
with
6 additions
and
5 deletions
src/java.base/share/classes/java/lang/Class.java
+
6
−
5
View file @
d7c67fc3
...
...
@@ -3788,13 +3788,14 @@ public final class Class<T> implements java.io.Serializable,
// Fetches the factory for reflective objects
@SuppressWarnings
(
"removal"
)
private
static
ReflectionFactory
getReflectionFactory
()
{
if
(
reflectionFactory
==
null
)
{
reflectionFactory
=
var
factory
=
reflectionFactory
;
if
(
factory
!=
null
)
{
return
factory
;
}
return
reflectionFactory
=
java
.
security
.
AccessController
.
doPrivileged
(
new
ReflectionFactory
.
GetReflectionFactoryAction
());
}
return
reflectionFactory
;
}
private
static
ReflectionFactory
reflectionFactory
;
/**
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment