You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#2075 Slow startup because of low entropy for PRNG (#2318) (#2335)
* Fix hang-up due to blocking PRNG returned by SecureRandom.getInstanceStrong()
Fixes#2075
(cherry picked from commit 4ef3517)
Signed-off-by: Zuplyx <[email protected]>
Copy file name to clipboardexpand all lines: foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/config/SystemProperties.java
+41-27
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
/*
2
2
* Copyright (c) 1998, 2024 Oracle and/or its affiliates. All rights reserved.
3
+
* Copyright (c) 2024 Contributors to the Eclipse Foundation. All rights reserved.
3
4
*
4
5
* This program and the accompanying materials are made available under the
5
6
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -75,7 +76,7 @@ public class SystemProperties {
75
76
76
77
/**
77
78
* This system property can be set to override target server platform set by the Java EE container
78
-
* with the one either set in persistence.xml or autodetected.
79
+
* with the one either set in persistence.xml or auto-detected.
* This system property in milliseconds can control thread management in org.eclipse.persistence.internal.helper.ConcurrencyManager and org.eclipse.persistence.internal.helper.ConcurrencyUtil.
130
-
* It control how frequently the tiny dump log message is created.
131
+
* It controls how frequently the tiny dump log message is created.
131
132
* Default value is 40000 (unit is ms). Allowed values are: long
* This system property in milliseconds can control thread management in org.eclipse.persistence.internal.helper.ConcurrencyManager and org.eclipse.persistence.internal.helper.ConcurrencyUtil.
137
-
* It control how frequently the massive dump log message is created.
138
+
* It controls how frequently the massive dump log message is created.
138
139
* Default value is 60000 (unit is ms). Allowed values are: long
* <li>"<code>false</code>" - if aborting frozen thread is not effective it is preferable to not fire the interrupted exception let the system
149
+
* <li>"{@codefalse}" - if aborting frozen thread is not effective it is preferable to not fire the interrupted exception let the system
149
150
* In the places where use this property normally if a thread is stuck it is because it is doing object building.
150
151
* Blowing the threads ups is not that dangerous. It can be very dangerous for production if the dead lock ends up
151
152
* not being resolved because the productive business transactions will become cancelled if the application has a
152
153
* limited number of retries to for example process an MDB. However, the code spots where we use this constant are
153
154
* not as sensible as when the write lock manager is starving to run commit.
154
-
* <li>"<code>true</code>" (DEFAULT) - if we want the to fire up an exception to try to get the current thread to release all of its acquired locks and allow other
155
+
* <li>"{@codetrue}" (DEFAULT) - if we want the to fire up an exception to try to get the current thread to release all of its acquired locks and allow other
Copy file name to clipboardexpand all lines: foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/internal/security/JCEEncryptor.java
+13-4
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
/*
2
2
* Copyright (c) 1998, 2024 Oracle and/or its affiliates. All rights reserved.
3
+
* Copyright (c) 2024 Contributors to the Eclipse Foundation. All rights reserved.
3
4
*
4
5
* This program and the accompanying materials are made available under the
5
6
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -14,6 +15,7 @@
14
15
// Oracle - initial API and implementation from Oracle TopLink
Copy file name to clipboardexpand all lines: foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/internal/security/PrivilegedAccessHelper.java
+5-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
/*
2
-
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
2
+
* Copyright (c) 1998, 2024 Oracle and/or its affiliates. All rights reserved.
3
+
* Copyright (c) 2024 Contributors to the Eclipse Foundation. All rights reserved.
3
4
*
4
5
* This program and the accompanying materials are made available under the
5
6
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -50,13 +51,13 @@
50
51
/**
51
52
* INTERNAL:
52
53
* Privileged Access Helper provides a utility so all calls that require privileged access can use the same code.
53
-
*
54
+
* <p>
54
55
* Do privileged blocks can be used with a security manager to grant a code base (eclipselink.jar) access to certain
55
56
* Java operations such as reflection. Generally a security manager is not enabled in a JVM, so this is not an issue.
56
57
* If a security manager is enabled, then either the application can be configured to have access to operations such as
57
58
* reflection, or only EclipseLink can be given access. If only EclipseLink is desired to be given access then
58
59
* do privileged must be enabled through the System property "eclipselink.security.usedoprivileged"=true.
59
-
*
60
+
* <p>
60
61
* Note the usage of do privileged has major impacts on performance, so should normally be avoided.
61
62
*/
62
63
publicclassPrivilegedAccessHelper {
@@ -75,6 +76,7 @@ public class PrivilegedAccessHelper {
0 commit comments