![]() |
MySQL 9.5.0
Source Code Documentation
|
Common context for GraalVM Languages. More...
#include <polyglot_common_context.h>
Public Member Functions | |
| Polyglot_common_context ()=default | |
| virtual | ~Polyglot_common_context ()=default |
| virtual void | initialize (const IsolateArgs &isolate_args) |
| virtual void | finalize () |
| poly_reference | engine () const |
| poly_isolate | isolate () const |
| poly_thread | thread () const |
| void | clean_collectables () |
| Collectable_registry * | collectable_registry () |
| double | get_heap_usage_percent () |
| std::string | get_gc_status () |
Protected Attributes | |
| poly_isolate | m_isolate = nullptr |
| poly_thread | m_thread = nullptr |
Private Member Functions | |
| void | init_engine () |
| virtual void | fatal_error ()=0 |
| virtual void | flush ()=0 |
| virtual void | log (const char *bytes, size_t length)=0 |
| virtual poly_engine | create_engine () |
| virtual Garbage_collector::Config | gc_config () |
Static Private Member Functions | |
| static void | fatal_error_callback (void *data) |
| static void | flush_callback (void *data) |
| static void | log_callback (const char *bytes, size_t length, void *data) |
Private Attributes | |
| Store | m_engine |
| std::unique_ptr< Polyglot_scope > | m_scope |
| Collectable_registry | m_registry |
| int64_t | m_max_heap_size = 0 |
| int64_t * | m_heap_status = nullptr |
| std::vector< int64_t * > | m_generation_used |
Common context for GraalVM Languages.
Encloses the following global routines/components:
This class can be specialized to:
|
default |
|
virtualdefault |
| void shcore::polyglot::Polyglot_common_context::clean_collectables | ( | ) |
|
inline |
|
inlineprivatevirtual |
Reimplemented in jit_executor::CommonContext.
|
inline |
|
privatepure virtual |
Implemented in jit_executor::CommonContext.
|
staticprivate |
|
virtual |
Reimplemented in jit_executor::CommonContext.
|
privatepure virtual |
Implemented in jit_executor::CommonContext.
|
staticprivate |
|
inlineprivatevirtual |
Reimplemented in jit_executor::CommonContext.
| std::string shcore::polyglot::Polyglot_common_context::get_gc_status | ( | ) |
| double shcore::polyglot::Polyglot_common_context::get_heap_usage_percent | ( | ) |
|
private |
|
virtual |
Reimplemented in jit_executor::CommonContext.
|
inline |
|
privatepure virtual |
Implemented in jit_executor::CommonContext.
|
staticprivate |
|
inline |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
protected |