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
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/CApiContext.java
+21-3Lines changed: 21 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@
55
55
importjava.util.Map;
56
56
importjava.util.Objects;
57
57
importjava.util.concurrent.ConcurrentHashMap;
58
+
importjava.util.concurrent.atomic.AtomicBoolean;
58
59
importjava.util.concurrent.atomic.AtomicLong;
59
60
60
61
importorg.graalvm.collections.EconomicMap;
@@ -526,7 +527,8 @@ public int getId() {
526
527
* This represents whether the current process has already loaded an instance of the native CAPI
527
528
* extensions - this can only be loaded once per process.
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/ErrorMessages.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1485,6 +1485,13 @@ public abstract class ErrorMessages {
1485
1485
publicstaticfinalTruffleStringHPY_CANNOT_SPECIFY_LEG_SLOTS_WO_SETTING_LEG = tsLiteral("cannot specify .legacy_slots without setting .builtin_shape=HPyType_BuiltinShape_Legacy");
1486
1486
publicstaticfinalTruffleStringHPY_CANNOT_USE_CALL_WITH_LEGACY = tsLiteral("Cannot use HPy call protocol with legacy types that inherit the struct. " +
1487
1487
"Either set the basicsize to a non-zero value or use legacy slot 'Py_tp_call'.");
1488
+
publicstaticfinalTruffleStringNFI_NOT_AVAILABLE = tsLiteral("GraalPy option '%s' is set to '%s, but the 'nfi' language, which is required for this feature, is not available. " +
1489
+
"If this is a GraalPy standalone distribution: this indicates internal error. If GraalPy was used as a Maven dependency: " +
1490
+
"are you missing a runtime dependency 'org.graalvm.truffle:truffle-nfi-libffi', which should be a dependency of 'org.graalvm.polyglot:python{-community}'?");
1491
+
1492
+
publicstaticfinalTruffleStringLLVM_NOT_AVAILABLE = tsLiteral("GraalPy option 'NativeModules' is set to false, but the 'llvm' language, which is required for this feature, is not available. " +
1493
+
"If this is a GraalPy standalone distribution: this indicates internal error. If GraalPy was used as a Maven dependency: are you missing a runtime dependency " +
1494
+
"'org.graalvm.polyglot:llvm{-community}'?");
1488
1495
privatestaticfinalStringHPY_NON_DEFAULT_MESSAGE = "This is not allowed because custom HPy_mod_create slot cannot return a builtin module object and cannot make any use of any other " +
1489
1496
"data defined in the HPyModuleDef. Either do not define HPy_mod_create slot and let the runtime create a builtin module object from the provided HPyModuleDef, or do not " +
1490
1497
"define anything else but the HPy_mod_create slot.";
0 commit comments