зеркало из https://github.com/github/ruby.git
Make `volatile` the variable will be taken out from `EC_EXEC_TAG`
This commit is contained in:
Родитель
78ff9b719c
Коммит
076f2e9d3e
7
load.c
7
load.c
|
@ -1081,7 +1081,7 @@ require_internal(rb_execution_context_t *ec, VALUE fname, int exception, bool wa
|
||||||
char *volatile ftptr = 0;
|
char *volatile ftptr = 0;
|
||||||
VALUE path;
|
VALUE path;
|
||||||
volatile VALUE saved_path;
|
volatile VALUE saved_path;
|
||||||
VALUE realpath = 0;
|
volatile VALUE realpath = 0;
|
||||||
VALUE realpaths = get_loaded_features_realpaths();
|
VALUE realpaths = get_loaded_features_realpaths();
|
||||||
volatile bool reset_ext_config = false;
|
volatile bool reset_ext_config = false;
|
||||||
struct rb_ext_config prev_ext_config;
|
struct rb_ext_config prev_ext_config;
|
||||||
|
@ -1167,8 +1167,9 @@ require_internal(rb_execution_context_t *ec, VALUE fname, int exception, bool wa
|
||||||
|
|
||||||
if (result == TAG_RETURN) {
|
if (result == TAG_RETURN) {
|
||||||
rb_provide_feature(path);
|
rb_provide_feature(path);
|
||||||
if (realpath) {
|
VALUE real = realpath;
|
||||||
rb_hash_aset(realpaths, rb_fstring(realpath), Qtrue);
|
if (real) {
|
||||||
|
rb_hash_aset(realpaths, rb_fstring(real), Qtrue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ec->errinfo = saved.errinfo;
|
ec->errinfo = saved.errinfo;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче