dxFeed Graal Native SDK 3.9.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
43struct __graal_isolate_t;
44typedef struct __graal_isolate_t graal_isolate_t;
45
52struct __graal_isolatethread_t;
53typedef struct __graal_isolatethread_t graal_isolatethread_t;
54
55#ifdef _WIN64
56typedef unsigned long long __graal_uword;
57#else
58typedef unsigned long __graal_uword;
59#endif
60
64#define NO_PROTECTION_DOMAIN 0
66#define NEW_PROTECTION_DOMAIN -1
67
72
106 int version;
107
108 /* Fields introduced in version 1 */
111
112 /* Fields introduced in version 2. Internal usage, do not use. */
114 const char *auxiliary_image_path;
117
118 /* Fields introduced in version 3 */
120 int argc;
122 char **argv;
124 int pkey;
125
126 /* Fields introduced in version 4 */
130 char _reserved_4;
131
132 /* Fields introduced in version 5 */
134 char _reserved_5;
135};
137
138#if defined(__cplusplus)
139extern "C" {
140#endif
141
144 graal_isolatethread_t** thread);
145
148
150typedef graal_isolatethread_t* (*graal_get_current_thread_fn_t)(graal_isolate_t* isolate);
151
153typedef graal_isolate_t* (*graal_get_isolate_fn_t)(graal_isolatethread_t* thread);
154
157
160
166
167#if defined(__cplusplus)
168}
169#endif
170#endif
struct __graal_create_isolate_params_t graal_create_isolate_params_t
Definition graal_isolate.h:142
struct __graal_isolate_t graal_isolate_t
Definition graal_isolate.h:50
@ __graal_create_isolate_params_version
Definition graal_isolate.h:77
unsigned long __graal_uword
Definition graal_isolate.h:64
struct __graal_isolatethread_t graal_isolatethread_t
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:165
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:156
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:159
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:147
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:143
The parameters of graal_create_isolate().
Definition graal_isolate.h:110
int argc
The number of the strings in argv, including argv[0].
Definition graal_isolate.h:126
const char * auxiliary_image_path
Internal: the path of an auxiliary image to load (leave it NULL).
Definition graal_isolate.h:120
char ignore_unrecognized_args
1: unknown options in argv are ignored instead of failing graal_create_isolate().
Definition graal_isolate.h:134
__graal_uword auxiliary_image_reserved_space_size
Internal: the bytes reserved for loading an auxiliary image (leave it 0).
Definition graal_isolate.h:122
char _reserved_5
Internal, leave it 0.
Definition graal_isolate.h:140
__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:116
int version
The version of this structure: __graal_create_isolate_params_version, set after zeroing it.
Definition graal_isolate.h:112
char ** argv
The isolate arguments, parsed like a command line (see graal_create_isolate_params_t).
Definition graal_isolate.h:128
int pkey
Internal: the protection key or domain of the isolate (leave it 0, NO_PROTECTION_DOMAIN).
Definition graal_isolate.h:130
char _reserved_4
Internal, leave it 0.
Definition graal_isolate.h:136