mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8271624: Avoid unnecessary ThreadGroup.checkAccess calls when creating Threads
Reviewed-by: rriggs
This commit is contained in:
parent
e621cffa4f
commit
0b9539405d
1 changed files with 4 additions and 4 deletions
|
@ -417,14 +417,14 @@ public class Thread implements Runnable {
|
|||
}
|
||||
}
|
||||
|
||||
/* checkAccess regardless of whether or not threadgroup is
|
||||
explicitly passed in. */
|
||||
g.checkAccess();
|
||||
|
||||
/*
|
||||
* Do we have the required permissions?
|
||||
*/
|
||||
if (security != null) {
|
||||
/* checkAccess regardless of whether or not threadgroup is
|
||||
explicitly passed in. */
|
||||
security.checkAccess(g);
|
||||
|
||||
if (isCCLOverridden(getClass())) {
|
||||
security.checkPermission(
|
||||
SecurityConstants.SUBCLASS_IMPLEMENTATION_PERMISSION);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue