Skip to content

Commit 8792550

Browse files
Aleksandar Gradinaczakkak
authored andcommitted
Make ICC_Profiles usable in 20.3.1
1 parent a810b50 commit 8792550

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JavaAWTSubstitutions.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626

2727
import java.awt.Toolkit;
2828

29-
import com.oracle.svm.core.annotate.Alias;
30-
import com.oracle.svm.core.annotate.RecomputeFieldValue;
3129
import com.oracle.svm.core.annotate.Substitute;
3230
import com.oracle.svm.core.annotate.TargetClass;
3331

@@ -43,17 +41,3 @@ private static Toolkit getDefaultToolkit() {
4341
/** Dummy class to have a class with the file's name. */
4442
public final class JavaAWTSubstitutions {
4543
}
46-
47-
/**
48-
* The purpose of this substitution is to prevent standard color profile loading deferral. The only
49-
* reason this substitution exists is to ensure that our fix for loading standard color profiles
50-
* works. It should be removed once standard color profile loading is tested.
51-
*/
52-
@TargetClass(className = "sun.java2d.cmm.ProfileDeferralMgr", onlyWith = JDK11OrLater.class)
53-
final class Target_sun_java2d_cmm_ProfileDeferralMgr {
54-
55-
@Alias//
56-
@RecomputeFieldValue(kind = RecomputeFieldValue.Kind.FromAlias)//
57-
public static boolean deferring = false;
58-
59-
}

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JDKRegistrations.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ public void duringSetup(DuringSetupAccess a) {
5555
public void beforeAnalysis(BeforeAnalysisAccess access) {
5656
if (JavaVersionUtil.JAVA_SPEC > 8) {
5757
access.registerReachabilityHandler(this::registerColorProfileResources, clazz(access, "java.awt.color.ICC_Profile"));
58-
59-
/* These classes contain standard color profile caches which may not be loaded yet */
60-
rerunClassInit(access, "java.awt.color.ColorSpace");
61-
rerunClassInit(access, "java.awt.color.ICC_Profile");
6258
}
6359
}
6460

0 commit comments

Comments
 (0)