Yukihiro "Matz" Matsumoto
83992ee163
cast MRB_ENV_STACK_LEN to (mrb_int); ref #2600
2014-10-02 17:59:01 +09:00
Tatsuhiko Kubo
5fa30aeaea
Fix mismatches for MRB_API declarations.
2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto
7a25b53301
Merge pull request #2567 from cubicdaiya/issues/space_after_comma2
...
Add a missing space after ",".
2014-08-27 23:48:34 +09:00
Tatsuhiko Kubo
3202938099
Add a missing space after ",".
2014-08-27 19:13:40 +09:00
Tatsuhiko Kubo
cc22ec85b9
Use mrb_malloc() instead of mrb_realloc().
2014-08-27 18:58:26 +09:00
Tatsuhiko Kubo
bf173b320f
Remove discareded NULL checks.
2014-08-27 18:58:26 +09:00
Jun Hiroe
33ace171c4
Fix typo in gc.c
2014-08-07 21:16:32 +09:00
Yukihiro "Matz" Matsumoto
918d4dc85c
Merge pull request #2512 from suzukaze/gc-state-root
...
Rename GC_STATE_NONE GC_STATE_ROOT
2014-08-07 00:01:31 +09:00
Jun Hiroe
5eb3a8caa6
Refactor incremental_sweep_phase() in gc.c
2014-08-06 23:22:05 +09:00
Jun Hiroe
21f583783d
Rename GC_STATE_NONE GC_STATE_ROOT
2014-08-06 22:59:48 +09:00
Jun Hiroe
3569723ab3
Refactor obj_free() in gc.c
2014-08-05 23:16:01 +09:00
Yukihiro "Matz" Matsumoto
58cb1a2e8b
write barrier doc update
2014-08-05 11:29:08 +09:00
Yukihiro "Matz" Matsumoto
920ce88b50
Merge branch 'add-gc-docs' of https://github.com/suzukaze/mruby into suzukaze-add-gc-docs
2014-08-05 11:21:45 +09:00
Jun Hiroe
b20121f9e6
Add write_barrier docs
2014-08-05 02:10:02 +09:00
Yukihiro "Matz" Matsumoto
ea80e82852
Merge branch 'master' of github.com:mruby/mruby
2014-08-04 16:28:02 +09:00
cremno
a70413c4ea
fix conversion warnings
...
Those warnings are not enabled by default,
but getting rid of them doesn't hurt.
2014-08-03 19:54:31 +02:00
Yukihiro "Matz" Matsumoto
6aa6e75f75
rename obsolete mrb_special_const_p to mrb_immediate_p
2014-08-04 00:50:03 +09:00
Yukihiro "Matz" Matsumoto
206f89e209
add MRB_API modifiers to mruby API functions
2014-08-04 00:47:08 +09:00
Yukihiro "Matz" Matsumoto
875c07a742
Merge pull request #2477 from take-cheeze/allocf_ud
...
Add field `allocf_ud` to replace current `ud`.
2014-07-24 23:22:58 +09:00
take_cheeze
3c96602574
Use MRB_TT_EXCEPTION in exception object.
2014-07-21 23:09:13 +09:00
take_cheeze
fc9a91c4a6
Add field allocf_ud to replace current ud.
...
Since some use it as `mrb_state` associated user data.
2014-07-17 21:48:17 +09:00
David Turnbull
5486e8901a
Ensure RVALUE is large enough for word boxing types.
2014-07-02 09:50:38 -07:00
Yukihiro "Matz" Matsumoto
8a9e2066c3
mark pre-allocated exception
2014-06-04 11:36:19 +09:00
Yukihiro "Matz" Matsumoto
d62ce565c6
use pre-allocated RuntimeError for out-of-memory
2014-06-04 11:33:15 +09:00
katmutua
4039355fd8
Fix typos in gc
2014-06-03 16:29:42 +09:00
Jun Hiroe
3988597afc
Fix indent
2014-05-03 02:20:23 +09:00
Yukihiro "Matz" Matsumoto
29f6cdcd4d
stack may be uncleared
2014-04-29 10:36:30 +09:00
Yukihiro "Matz" Matsumoto
57e6a783bc
fiber context may be NULL
2014-04-29 10:32:49 +09:00
Yukihiro "Matz" Matsumoto
4e790fc1b6
forgot to remove abort()
2014-04-27 02:50:41 +09:00
Yukihiro "Matz" Matsumoto
4bfd25d405
mark may be missed when eval() is called
2014-04-27 02:48:11 +09:00
kyab
e248097a17
Fix MSVC warning for gc.c
2014-04-24 01:18:41 +09:00
take_cheeze
755ded2ef0
Use MRB_ENV_STACK_SHARED_P to check cioff field of REnv.
2014-04-01 01:53:28 +09:00
take_cheeze
80534b6d14
Use MRB_ENV_STACK_LEN instead of accessing flags directly to get REnv's stack length.
2014-04-01 01:13:39 +09:00
Yukihiro "Matz" Matsumoto
9201af7d36
mark root fiber object; close #1865
2014-03-18 12:39:11 +09:00
cubicdaiya
042c9f95a5
add comments at end of include guard
2014-03-10 12:37:47 +09:00
Yukihiro "Matz" Matsumoto
90c54d1ead
remove break altogether in ci loop
2014-02-28 01:25:50 +09:00
Yukihiro "Matz" Matsumoto
d1526b0409
should not continue loop when ci = NULL
2014-02-27 19:00:37 +09:00
Yukihiro "Matz" Matsumoto
19a08b8455
Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE
...
use mrb_bool, FALSE and TRUE more
2014-02-09 18:35:20 +09:00
Yukihiro "Matz" Matsumoto
ed1bf9aa80
introduce mrb_str_new_lit() to create strings from C string litrals
2014-02-06 07:50:34 +09:00
cremno
4507985c3e
use mrb_bool, FALSE and TRUE more
...
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0
but I prefer a type (alias) which emphasizes boolean vars to int.
I changed 1/0 to FALSE/TRUE anyway.
2014-01-31 18:00:36 +01:00
cremno
a2cfc9a9af
rework mruby-objectspace and gc.[ch]
...
- functions should have C linkage (for C++ code)
- add prefix to each_object_callback
- use more appropriate variable types / initialization
- ObjectSpace::count_objects has 1 opt. arg.
- prefer mrb_intern_lit to mrb_intern_cstr for str. lit.
- mruby/value.h is included by mruby.h
- adjust coding style
2014-01-31 17:42:05 +01:00
cremno
aa655b9ee1
remove superfluous includes
...
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
Yukihiro "Matz" Matsumoto
a26a6fecee
Merge pull request #1637 from h2so5/extended-arena-size
...
Fix extended arena check in gc_protect
2014-01-02 15:44:31 -08:00
h2so5
a44cc14e1c
Fix extended arena check in gc_protect
2014-01-02 18:23:26 +09:00
cremno
18433731ed
remove various preprocessor conditionals
...
- HAVE_IEEEFP_H is nowhere defined or needed at all
- FreeBSD < 4 is unsupported since years
- MSVC workaround (around what exactly?)
2014-01-02 07:33:33 +01:00
Yukihiro "Matz" Matsumoto
07b8a5b042
Make mrb->arena variable sized. Use MRB_GC_FIXED_ARENA for old behavior.
...
You will not see "arena overflow" error anymore, but I encourage gem authors
to check your gems with MRB_GC_FIXED_ARENA to avoid memory broat.
2013-11-22 09:20:06 +09:00
Yukihiro "Matz" Matsumoto
de790bdc27
allow irep to be GCed
2013-11-08 20:39:50 +09:00
Yukihiro "Matz" Matsumoto
677a2ac226
irep->pool not to be GCed
2013-11-07 04:20:46 +09:00
Yukihiro "Matz" Matsumoto
e92d4e2680
modified to use irep->reps to reference child ireps. preparation for
...
removing irep array from mrb_state. note that instructions OP_LAMBDA,
OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-07 03:54:22 +09:00
Yukihiro "Matz" Matsumoto
e386760cc7
add Fiber.current
2013-11-04 23:58:32 +09:00