-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ab024e
commit 8e20d02
Showing
90 changed files
with
232 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
core/deployment/src/main/java/io/quarkus/deployment/ThreadLocalRandomProcessor.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
.../runtime/src/main/java/io/quarkus/runtime/graal/SecurityServicesFeatureSubstitutions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package io.quarkus.runtime.graal; | ||
|
||
import java.lang.reflect.Field; | ||
import java.util.Map; | ||
import java.util.function.BooleanSupplier; | ||
|
||
import org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess; | ||
|
||
import com.oracle.svm.core.annotate.Substitute; | ||
import com.oracle.svm.core.annotate.TargetClass; | ||
import com.oracle.svm.core.util.VMError; | ||
import com.oracle.svm.hosted.SecurityServicesFeature; | ||
|
||
/** | ||
* @deprecated This class contains a workaround for a NPE that is thrown when a third-party security provider (meaning not one | ||
* from the JDK) is used in Quarkus. A GraalVM issue has been created for it, the fix should be part of GraalVM | ||
* 19.3.1. This class should be removed as soon as we integrate a GraalVM release that includes the fix.<br> | ||
* See https://github.com/oracle/graal/issues/1883 for more details about the bug and the fix. | ||
*/ | ||
@Deprecated | ||
@TargetClass(value = SecurityServicesFeature.class, onlyWith = GraalVersion19_3_0.class) | ||
final class Target_com_oracle_svm_hosted_SecurityServicesFeature { | ||
|
||
@Substitute | ||
private static Class<?> lambda$getConsParamClassAccessor$0(Map<String, Object> knownEngines, Field consParamClassNameField, | ||
BeforeAnalysisAccess access, java.lang.String serviceType) { | ||
try { | ||
/* | ||
* Access the Provider.knownEngines map and extract the EngineDescription | ||
* corresponding to the serviceType. Note that the map holds EngineDescription(s) of | ||
* only those service types that are shipped in the JDK. From the EngineDescription | ||
* object extract the value of the constructorParameterClassName field then, if the | ||
* class name is not null, get the corresponding Class<?> object and return it. | ||
*/ | ||
/* EngineDescription */Object engineDescription = knownEngines.get(serviceType); | ||
/* | ||
* This isn't an engine known to the Provider (which actually means that it isn't | ||
* one that's shipped in the JDK), so we don't have the predetermined knowledge of | ||
* the constructor param class. | ||
*/ | ||
if (engineDescription == null) { | ||
return null; | ||
} | ||
String constrParamClassName = (String) consParamClassNameField.get(engineDescription); | ||
if (constrParamClassName != null) { | ||
return access.findClassByName(constrParamClassName); | ||
} | ||
} catch (IllegalAccessException e) { | ||
VMError.shouldNotReachHere(e); | ||
} | ||
return null; | ||
|
||
} | ||
} | ||
|
||
final class GraalVersion19_3_0 implements BooleanSupplier { | ||
public boolean getAsBoolean() { | ||
final String version = System.getProperty("org.graalvm.version"); | ||
return version.startsWith("19.3."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.