Search in sources :

Example 1 with AddressOfVMThreadLocalNode

use of com.oracle.svm.core.graal.thread.AddressOfVMThreadLocalNode in project graal by oracle.

the class VMThreadMTFeature method handleGetAddress.

private boolean handleGetAddress(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver, ValueNode threadNode) {
    VMThreadLocalInfo threadLocalInfo = threadLocalCollector.findInfo(b, receiver.get());
    b.addPush(targetMethod.getSignature().getReturnKind(), new AddressOfVMThreadLocalNode(threadLocalInfo, threadNode));
    return true;
}
Also used : AddressOfVMThreadLocalNode(com.oracle.svm.core.graal.thread.AddressOfVMThreadLocalNode) VMThreadLocalInfo(com.oracle.svm.core.threadlocal.VMThreadLocalInfo)

Example 2 with AddressOfVMThreadLocalNode

use of com.oracle.svm.core.graal.thread.AddressOfVMThreadLocalNode in project graal by oracle.

the class VMThreadSTFeature method handleGetAddress.

private boolean handleGetAddress(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver) {
    VMThreadLocalInfo threadLocalInfo = threadLocalCollector.findInfo(b, receiver.get());
    VMThreadLocalSTHolderNode holder = b.add(new VMThreadLocalSTHolderNode(threadLocalInfo));
    b.addPush(targetMethod.getSignature().getReturnKind(), new AddressOfVMThreadLocalNode(threadLocalInfo, holder));
    return true;
}
Also used : VMThreadLocalSTHolderNode(com.oracle.svm.core.graal.thread.VMThreadLocalSTHolderNode) AddressOfVMThreadLocalNode(com.oracle.svm.core.graal.thread.AddressOfVMThreadLocalNode) VMThreadLocalInfo(com.oracle.svm.core.threadlocal.VMThreadLocalInfo)

Aggregations

AddressOfVMThreadLocalNode (com.oracle.svm.core.graal.thread.AddressOfVMThreadLocalNode)2 VMThreadLocalInfo (com.oracle.svm.core.threadlocal.VMThreadLocalInfo)2 VMThreadLocalSTHolderNode (com.oracle.svm.core.graal.thread.VMThreadLocalSTHolderNode)1