dxFeed Graal Native SDK 3.14.0-rc2
Loading...
Searching...
No Matches
graal_isolate.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MPL-2.0
2
41
42#ifndef __GRAAL_ISOLATE_H
43#define __GRAAL_ISOLATE_H
44
45struct __graal_isolate_t;
51typedef struct __graal_isolate_t graal_isolate_t;
52
53struct __graal_isolatethread_t;
60typedef struct __graal_isolatethread_t graal_isolatethread_t;
61
62#ifdef _WIN64
64typedef unsigned long long __graal_uword;
65#else
67typedef unsigned long __graal_uword;
68#endif
69
73#define NO_PROTECTION_DOMAIN 0
75#define NEW_PROTECTION_DOMAIN -1
76
81
116
117 /* Fields introduced in version 1 */
120
121 /* Fields introduced in version 2. Internal usage, do not use. */
126
127 /* Fields introduced in version 3 */
129 int argc;
131 char **argv;
133 int pkey;
134
135 /* Fields introduced in version 4 */
140
141 /* Fields introduced in version 5 */
144};
145
147
148#if defined(__cplusplus)
149extern "C" {
150#endif
151
161 graal_isolatethread_t** thread);
162
174
182
190
200
214
226
227#if defined(__cplusplus)
228}
229#endif
230#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:146
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:51
int graal_detach_all_threads_and_tear_down_isolate(graal_isolatethread_t *thread)
Detaches all the threads that were started outside Java and attached to the isolate afterwards (inclu...
int graal_create_isolate(graal_create_isolate_params_t *params, graal_isolate_t **isolate, graal_isolatethread_t **thread)
Creates a new isolate and attaches the current thread to it.
@ __graal_create_isolate_params_version
Definition graal_isolate.h:80
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:67
int graal_detach_thread(graal_isolatethread_t *thread)
Detaches the isolate thread from its isolate and discards its state.
int graal_tear_down_isolate(graal_isolatethread_t *thread)
Tears down the isolate of the isolate thread (which must still be attached): waits for the other atta...
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:60
graal_isolatethread_t * graal_get_current_thread(graal_isolate_t *isolate)
Returns the isolate thread of the current thread in the isolate.
int graal_attach_thread(graal_isolate_t *isolate, graal_isolatethread_t **thread)
Attaches the current thread to the isolate.
graal_isolate_t * graal_get_isolate(graal_isolatethread_t *thread)
Returns the isolate of an isolate thread.
The parameters of graal_create_isolate().
Definition graal_isolate.h:113
int argc
The number of the strings in argv, including argv[0].
Definition graal_isolate.h:129
const char * auxiliary_image_path
Internal: the path of an auxiliary image to load (leave it NULL).
Definition graal_isolate.h:123
char ignore_unrecognized_args
1: unknown options in argv are ignored instead of failing graal_create_isolate().
Definition graal_isolate.h:137
__graal_uword auxiliary_image_reserved_space_size
Internal: the bytes reserved for loading an auxiliary image (leave it 0).
Definition graal_isolate.h:125
char _reserved_5
Internal, leave it 0.
Definition graal_isolate.h:143
__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:119
int version
The version of this structure: __graal_create_isolate_params_version, set after zeroing it.
Definition graal_isolate.h:115
char ** argv
The isolate arguments, parsed like a command line (see graal_create_isolate_params_t).
Definition graal_isolate.h:131
int pkey
Internal: the protection key or domain of the isolate (leave it 0, NO_PROTECTION_DOMAIN).
Definition graal_isolate.h:133
char _reserved_4
Internal, leave it 0.
Definition graal_isolate.h:139