Skip to content

Instantly share code, notes, and snippets.

@aghosn
Created August 16, 2019 18:33
Show Gist options
  • Save aghosn/5bab6e1870960bcabcb359707d0f5825 to your computer and use it in GitHub Desktop.
Save aghosn/5bab6e1870960bcabcb359707d0f5825 to your computer and use it in GitHub Desktop.
substrateVM patch
diff --git a/substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/linux/LinuxImageHeapProvider.java b/substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/linux/LinuxImageHeapProvider.java
index e6a1fa25aee..e94be2cae16 100644
--- a/substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/linux/LinuxImageHeapProvider.java
+++ b/substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/linux/LinuxImageHeapProvider.java
@@ -78,8 +78,10 @@ import com.oracle.svm.core.posix.headers.UnistdNoTransitions;
import jdk.vm.ci.code.MemoryBarriers;
-@AutomaticFeature
-@Platforms(InternalPlatform.LINUX_AND_JNI.class)
+import com.oracle.svm.core.os.ImageHeapProviderFeature;
+
+//@AutomaticFeature
+//@Platforms(InternalPlatform.LINUX_AND_JNI.class)
class LinuxImageHeapProviderFeature implements Feature {
@Override
public void duringSetup(DuringSetupAccess access) {
diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/os/ImageHeapProviderFeature.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/os/ImageHeapProviderFeature.java
index 0971a152193..3ff4ae81afe 100644
--- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/os/ImageHeapProviderFeature.java
+++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/os/ImageHeapProviderFeature.java
@@ -28,8 +28,11 @@ import org.graalvm.nativeimage.hosted.Feature;
import org.graalvm.nativeimage.ImageSingletons;
import com.oracle.svm.core.annotate.AutomaticFeature;
+import org.graalvm.nativeimage.impl.InternalPlatform;
+import org.graalvm.nativeimage.Platforms;
@AutomaticFeature
+@Platforms(InternalPlatform.LINUX_AND_JNI.class)
public class ImageHeapProviderFeature implements Feature {
@Override
public void beforeAnalysis(BeforeAnalysisAccess access) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment