Skip to content

Commit 600624b

Browse files
committed
[GR-61692] Add comment to TruffleToLibGraalCalls2 explaining why the class was added.
PullRequest: graal/19928
2 parents 37586c9 + 27cc937 commit 600624b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/hotspot/libgraal/TruffleToLibGraalCalls2.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444

4545
import com.oracle.truffle.compiler.hotspot.libgraal.TruffleToLibGraal;
4646

47+
/**
48+
* The method defined in this class can't be added to {@link TruffleToLibGraalCalls}, because the
49+
* code has to work also with libgraal which does not have the entry point for the method.
50+
* Therefore, {@link jdk.vm.ci.hotspot.HotSpotJVMCIRuntime#registerNativeMethods(Class) registering}
51+
* this class might throw an {@link UnsatisfiedLinkError error}. If more methods like that need to
52+
* be added, then new classes TruffleToLibGraalCalls3, TruffleToLibGraalCalls4, etc. have to be
53+
* created.
54+
*/
4755
final class TruffleToLibGraalCalls2 {
4856

4957
@TruffleToLibGraal(GetCompilationId)

0 commit comments

Comments
 (0)