-
-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core) EspressoVM compatibility #1003
base: master
Are you sure you want to change the base?
Conversation
`reserved0` is used by EspressoVM, thus it cannot serve as a "reference NULL" as on HotSpot: https://github.com/oracle/graal/blob/3149f62458029ffe92b8dcefe0b3e59612684cfa/espresso/src/com.oracle.truffle.espresso.mokapot/include/mokapot.h#L67-L73 The relevant config is `MOKA_LATTE`. `reserved3` is `NULL` though.
ad4e87e
to
2756241
Compare
modules/lwjgl/core/src/main/java/org/lwjgl/system/ThreadLocalUtil.java
Outdated
Show resolved
Hide resolved
modules/lwjgl/core/src/main/java/org/lwjgl/system/ThreadLocalUtil.java
Outdated
Show resolved
Hide resolved
modules/lwjgl/core/src/main/java/org/lwjgl/system/ThreadLocalUtil.java
Outdated
Show resolved
Hide resolved
d12cf34
to
c8a8187
Compare
modules/lwjgl/core/src/main/java/org/lwjgl/system/ThreadLocalUtil.java
Outdated
Show resolved
Hide resolved
I have ran into this issue myself, what if all reversed slots are in use? Won't it be better to copy JNIEnv with one more pointer in the function table? |
reserved0
is used by EspressoVM, thus it cannot serve as a "reference NULL" as on HotSpot: https://github.com/oracle/graal/blob/3149f62458029ffe92b8dcefe0b3e59612684cfa/espresso/src/com.oracle.truffle.espresso.mokapot/include/mokapot.h#L67-L73The relevant config is
MOKA_LATTE
.reserved3
isNULL
though.EspressoVM aka. Java on Truffle: https://www.graalvm.org/latest/reference-manual/java-on-truffle/
I tested the fix with Espresso, but I'm not 100% sure about the implications for other implementations. So please understand this PR more like a bug report 🙂 In general, I saw that in #875 (comment) it is mentioned that you want to get rid of (ab)using
reserved3
, so I think that's the better fix going forward.