File tree Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 45
45
extern " C" {
46
46
47
47
#if defined(J9VM_OPT_JAVA_OFFLOAD_SUPPORT)
48
- /* *
49
- * Switch onto the zaap processor if not already running there.
50
- *
51
- * @param currentThread[in] the current J9VMThread
52
- * @param reason[in] the reason code
53
- */
54
- static void
48
+ void
55
49
javaOffloadSwitchOnWithReason (J9VMThread *currentThread, UDATA reason)
56
50
{
57
51
J9JavaVM *vm = currentThread->javaVM ;
@@ -64,13 +58,7 @@ javaOffloadSwitchOnWithReason(J9VMThread *currentThread, UDATA reason)
64
58
}
65
59
}
66
60
67
- /* *
68
- * Switch away from the zaap processor if running there.
69
- *
70
- * @param currentThread[in] the current J9VMThread
71
- * @param reason[in] the reason code
72
- */
73
- static void
61
+ void
74
62
javaOffloadSwitchOffWithReason (J9VMThread *currentThread, UDATA reason)
75
63
{
76
64
J9JavaVM *vm = currentThread->javaVM ;
@@ -81,8 +69,7 @@ javaOffloadSwitchOffWithReason(J9VMThread *currentThread, UDATA reason)
81
69
}
82
70
}
83
71
}
84
- #endif /* J9VM_OPT_JAVA_OFFLOAD_SUPPORT */
85
-
72
+ #endif /* defined(J9VM_OPT_JAVA_OFFLOAD_SUPPORT) */
86
73
87
74
/* *
88
75
* Get the array class for a J9Class.
Original file line number Diff line number Diff line change @@ -557,6 +557,24 @@ freeAllStructFFITypes(J9VMThread *currentThread, void *cifNode);
557
557
558
558
#if defined(J9VM_OPT_JAVA_OFFLOAD_SUPPORT )
559
559
560
+ /**
561
+ * Switch onto the zaap processor if not already running there.
562
+ *
563
+ * @param currentThread[in] the current J9VMThread
564
+ * @param reason[in] the reason code
565
+ */
566
+ void
567
+ javaOffloadSwitchOnWithReason (J9VMThread * currentThread , UDATA reason );
568
+
569
+ /**
570
+ * Switch away from the zaap processor if running there.
571
+ *
572
+ * @param currentThread[in] the current J9VMThread
573
+ * @param reason[in] the reason code
574
+ */
575
+ void
576
+ javaOffloadSwitchOffWithReason (J9VMThread * currentThread , UDATA reason );
577
+
560
578
#define JAVA_OFFLOAD_SWITCH_ON_WITH_REASON_IF_LIMIT_EXCEEDED (currentThread , reason , length ) \
561
579
do { \
562
580
if ((length) > J9_JNI_OFFLOAD_SWITCH_THRESHOLD) { \
You can’t perform that action at this time.
0 commit comments