mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Constified mjit_init
This commit is contained in:
parent
cb760f36aa
commit
4e03a7298b
2 changed files with 2 additions and 2 deletions
2
mjit.c
2
mjit.c
|
@ -741,7 +741,7 @@ split_flags(const char *flags)
|
||||||
// processing ISeqs. The function should be called first for using MJIT.
|
// processing ISeqs. The function should be called first for using MJIT.
|
||||||
// If everything is successful, MJIT_INIT_P will be TRUE.
|
// If everything is successful, MJIT_INIT_P will be TRUE.
|
||||||
void
|
void
|
||||||
mjit_init(struct mjit_options *opts)
|
mjit_init(const struct mjit_options *opts)
|
||||||
{
|
{
|
||||||
mjit_opts = *opts;
|
mjit_opts = *opts;
|
||||||
mjit_enabled = true;
|
mjit_enabled = true;
|
||||||
|
|
2
mjit.h
2
mjit.h
|
@ -80,7 +80,7 @@ extern void rb_mjit_recompile_iseq(const rb_iseq_t *iseq);
|
||||||
RUBY_SYMBOL_EXPORT_END
|
RUBY_SYMBOL_EXPORT_END
|
||||||
|
|
||||||
extern bool mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname);
|
extern bool mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname);
|
||||||
extern void mjit_init(struct mjit_options *opts);
|
extern void mjit_init(const struct mjit_options *opts);
|
||||||
extern void mjit_gc_start_hook(void);
|
extern void mjit_gc_start_hook(void);
|
||||||
extern void mjit_gc_exit_hook(void);
|
extern void mjit_gc_exit_hook(void);
|
||||||
extern void mjit_free_iseq(const rb_iseq_t *iseq);
|
extern void mjit_free_iseq(const rb_iseq_t *iseq);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue