Skip to content

Commit e2eafe1

Browse files
committed
Add JNI configuration for SVM build
1 parent 74da79d commit e2eafe1

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[
2+
{
3+
"name":"com.oracle.graal.python.builtins.objects.cext.hpy.GraalHPyContext",
4+
"methods":[
5+
{"name":"ctxCast","parameterTypes":["long"] },
6+
{"name":"ctxClose","parameterTypes":["long"] },
7+
{"name":"ctxDup","parameterTypes":["long"] },
8+
{"name":"ctxFloatAsDouble","parameterTypes":["long"] },
9+
{"name":"ctxFloatFromDouble","parameterTypes":["double"] },
10+
{"name":"ctxGetItemi","parameterTypes":["long","long"] },
11+
{"name":"ctxLength","parameterTypes":["long"] },
12+
{"name":"ctxListCheck","parameterTypes":["long"] },
13+
{"name":"ctxLongAsLong","parameterTypes":["long"] },
14+
{"name":"ctxNew","parameterTypes":["long","long"] },
15+
{"name":"ctxNumberCheck","parameterTypes":["long"] },
16+
{"name":"ctxTypeGenericNew","parameterTypes":["long"] }
17+
]
18+
}
19+
]

mx.graalpython/native-image.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ Args = -H:MaxRuntimeCompileMethods=15000 \
1212
--initialize-at-run-time=com.ibm.icu \
1313
-H:SubstitutionResources=com/oracle/graal/python/aot/substitutions.json \
1414
-H:ReflectionConfigurationResources=com/oracle/graal/python/resources/reflect-config.json \
15-
-H:ResourceConfigurationResources=com/oracle/graal/python/resources/resource-config.json
15+
-H:ResourceConfigurationResources=com/oracle/graal/python/resources/resource-config.json \
16+
-H:JNIConfigurationResources=com/oracle/graal/python/resources/jni-config.json

0 commit comments

Comments
 (0)