diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-04 11:33:15 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-04 11:33:15 +0900 |
| commit | d62ce565c66a427a0f01cf7301ff59362a460aba (patch) | |
| tree | 55e2bae439ce0669dd19c5de9f4c5e9cae2d2e37 /src/gc.c | |
| parent | b01bb33b75e43ca68c70d7cabb53dc1718603541 (diff) | |
| download | mruby-d62ce565c66a427a0f01cf7301ff59362a460aba.tar.gz mruby-d62ce565c66a427a0f01cf7301ff59362a460aba.zip | |
use pre-allocated RuntimeError for out-of-memory
Diffstat (limited to 'src/gc.c')
| -rw-r--r-- | src/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -189,7 +189,7 @@ mrb_realloc(mrb_state *mrb, void *p, size_t len) } else { mrb->out_of_memory = TRUE; - mrb_raise(mrb, E_RUNTIME_ERROR, "Out of memory"); + mrb_exc_raise(mrb, mrb_obj_value(mrb->nomem_err)); } } else { |
