dxFeed Graal Native SDK 3.10.0
Loading...
Searching...
No Matches
graal_isolate_dynamic.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MPL-2.0
2
34
35#ifndef __GRAAL_ISOLATE_H
36#define __GRAAL_ISOLATE_H
37
38struct __graal_isolate_t;
44typedef struct __graal_isolate_t graal_isolate_t;
45
46struct __graal_isolatethread_t;
53typedef struct __graal_isolatethread_t graal_isolatethread_t;
54
55#ifdef _WIN64
57typedef unsigned long long __graal_uword;
58#else
60typedef unsigned long __graal_uword;
61#endif
62
66#define NO_PROTECTION_DOMAIN 0
68#define NEW_PROTECTION_DOMAIN -1
69
74
108 int version;
109
110 /* Fields introduced in version 1 */
113
114 /* Fields introduced in version 2. Internal usage, do not use. */
116 const char *auxiliary_image_path;
119
120 /* Fields introduced in version 3 */
122 int argc;
124 char **argv;
126 int pkey;
127
128 /* Fields introduced in version 4 */
132 char _reserved_4;
133
134 /* Fields introduced in version 5 */
136 char _reserved_5;
137};
140
141#if defined(__cplusplus)
142extern "C" {
143#endif
144
147 graal_isolatethread_t** thread);
148
151
153typedef graal_isolatethread_t* (*graal_get_current_thread_fn_t)(graal_isolate_t* isolate);
154
156typedef graal_isolate_t* (*graal_get_isolate_fn_t)(graal_isolatethread_t* thread);
157
160
163
169
170#if defined(__cplusplus)
171}
172#endif
173#endif
struct __graal_create_isolate_params_t graal_create_isolate_params_t
The parameters of graal_create_isolate(): see struct __graal_create_isolate_params_t.
Definition graal_isolate.h:145
struct __graal_isolate_t graal_isolate_t
An isolate: the instance of the SDK (its heap and Java state) in the process.
Definition graal_isolate.h:50
@ __graal_create_isolate_params_version
Definition graal_isolate.h:79
unsigned long __graal_uword
An unsigned integer of the size of a pointer: the type of the sizes in graal_create_isolate_params_t.
Definition graal_isolate.h:66
struct __graal_isolatethread_t graal_isolatethread_t
The state of one thread attached to an isolate: the first parameter (thread) of the SDK functions.
Definition graal_isolate.h:59
int(*) graal_detach_all_threads_and_tear_down_isolate_fn_t(graal_isolatethread_t *thread)
The type of graal_isolate.h's graal_detach_all_threads_and_tear_down_isolate() (dlsym(library,...
Definition graal_isolate_dynamic.h:168
int(*) graal_detach_thread_fn_t(graal_isolatethread_t *thread)
The type of graal_isolate.h's graal_detach_thread() (dlsym(library, "graal_detach_thread")).
Definition graal_isolate_dynamic.h:159
int(*) graal_tear_down_isolate_fn_t(graal_isolatethread_t *thread)
The type of graal_isolate.h's graal_tear_down_isolate() (dlsym(library, "graal_tear_down_isolate")).
Definition graal_isolate_dynamic.h:162
int(*) graal_attach_thread_fn_t(graal_isolate_t *isolate, graal_isolatethread_t **thread)
The type of graal_isolate.h's graal_attach_thread() (dlsym(library, "graal_attach_thread")).
Definition graal_isolate_dynamic.h:150
int(*) graal_create_isolate_fn_t(graal_create_isolate_params_t *params, graal_isolate_t **isolate, graal_isolatethread_t **thread)
The type of graal_isolate.h's graal_create_isolate() (dlsym(library, "graal_create_isolate")).
Definition graal_isolate_dynamic.h:146
The parameters of graal_create_isolate().
Definition graal_isolate.h:112
int argc
The number of the strings in argv, including argv[0].
Definition graal_isolate.h:128
const char * auxiliary_image_path
Internal: the path of an auxiliary image to load (leave it NULL).
Definition graal_isolate.h:122
char ignore_unrecognized_args
1: unknown options in argv are ignored instead of failing graal_create_isolate().
Definition graal_isolate.h:136
__graal_uword auxiliary_image_reserved_space_size
Internal: the bytes reserved for loading an auxiliary image (leave it 0).
Definition graal_isolate.h:124
char _reserved_5
Internal, leave it 0.
Definition graal_isolate.h:142
__graal_uword reserved_address_space_size
The size of the virtual address space to reserve for the heap (0: the default).
Definition graal_isolate.h:118
int version
The version of this structure: __graal_create_isolate_params_version, set after zeroing it.
Definition graal_isolate.h:114
char ** argv
The isolate arguments, parsed like a command line (see graal_create_isolate_params_t).
Definition graal_isolate.h:130
int pkey
Internal: the protection key or domain of the isolate (leave it 0, NO_PROTECTION_DOMAIN).
Definition graal_isolate.h:132
char _reserved_4
Internal, leave it 0.
Definition graal_isolate.h:138