Yukihiro "Matz" Matsumoto
f6fa07235b
Merge pull request #1450 from Fleurer/cleanup-warninigs
...
clean up the warnings when GC_PROFILE is set
2013-08-09 07:59:09 -07:00
Yukihiro "Matz" Matsumoto
53f750dbed
def statement and define_method now return symbol a la Ruby2.1
2013-08-09 22:25:45 +09:00
fleuria
b3b4f2dbdb
clean up the warnings when GC_PROFILE is on
2013-08-09 17:38:09 +08:00
Yukihiro "Matz" Matsumoto
3d3ca985b0
remove duplicated incremental_gc_until() in generational GC; #1449
2013-08-09 18:11:16 +09:00
fleuria
7e7943322b
add comments for major GC
2013-08-09 15:43:06 +08:00
Cremno
08911d1c82
parse.y: fixed bison 3.0 warning
...
YACC src/parse.y -> build/host/src/y.tab.c
src/parse.y:936.1-12: warning: deprecated directive, use ‘%pure-parser’
[-Wdeprecated]
%pure_parser
2013-08-09 03:30:08 +02:00
Yukihiro "Matz" Matsumoto
30f86069de
finish half-baked GC cycle before starting full GC; #1447
2013-08-08 22:08:12 +09:00
Yukihiro "Matz" Matsumoto
1e87bf6d2f
allow turning off GC generational mode by default by MRB_GC_TURN_OFF_GENERATIONAL; #1447
2013-08-08 21:42:20 +09:00
Yukihiro "Matz" Matsumoto
3b2b760ed3
Merge pull request #1445 from cremno/no_strcpy_and_strcat
...
don't use str{cpy,cat} in mruby and mrbc
2013-08-07 16:23:31 -07:00
Cremno
123c88759c
class.c and numeric.c: fixed MSVC warnings
2013-08-07 20:48:23 +02:00
Cremno
29381bc819
parse.y: don't use strcat
2013-08-07 20:35:38 +02:00
Yukihiro "Matz" Matsumoto
62303a80cf
Merge pull request #1444 from Fleurer/issue1442
...
fix #1442
2013-08-07 05:33:32 -07:00
fleuria
22ac62a4f1
fix #1442
...
in the marking root phase, we only marked the root context, but leaving
the current context unmarked. when we execute a fiber, the current
context would be changed and trigger this issue.
2013-08-07 19:42:56 +08:00
Yukihiro "Matz" Matsumoto
a61def802e
return statement should terminate execution of a method defined by define_method
2013-08-07 17:45:24 +09:00
Yukihiro "Matz" Matsumoto
40e6cdcb5c
rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source
2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki
8854ecb629
revert one of the API changes: MRB_SET_VALUE_P no longer used
2013-08-04 00:40:41 -07:00
Yuichi Nishiwaki
8dc2fa3bc8
add read barrier to value.p
...
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
Carson McDonald
5bd60f4662
End loop if nextc is -1
2013-08-02 17:08:55 -04:00
Yukihiro "Matz" Matsumoto
a32fdf3e5d
Merge pull request #1426 from Fleurer/clear-all-old
...
add comments for clear_all_old()
2013-08-01 07:01:26 -07:00
fleuria
107906e3cb
revise the comment in mrb_full_gc()
...
the old comment "clean all the black object as old" looks confusing,
it looks like "transform black object to old object", but indeed black
is old,
2013-08-01 17:50:13 +08:00
fleuria
c1469a57a2
add comment for clear_all_old()
2013-08-01 17:30:57 +08:00
Yukihiro "Matz" Matsumoto
429e69243c
remove unused inspect_range
2013-08-01 18:29:55 +09:00
Yukihiro "Matz" Matsumoto
7f282429b0
ci->target_class should be updated as well; #1418
2013-08-01 11:56:20 +09:00
Yukihiro "Matz" Matsumoto
c550a0f834
move mrb_gc_arena_restore() after cipop(); a bug found by Kilo Kawai
2013-07-31 22:24:10 +09:00
Yukihiro "Matz" Matsumoto
029613bc55
stop storing target_class info for C defined methods
2013-07-31 00:31:37 +09:00
Yukihiro "Matz" Matsumoto
326396a6e3
remove unused mrb_proc_new_with_target()
2013-07-31 00:16:55 +09:00
Yukihiro "Matz" Matsumoto
294ed98011
Merge branch 'master' of github.com:mruby/mruby
2013-07-30 01:33:14 +09:00
Yukihiro "Matz" Matsumoto
dbd36128ad
forget to re-initialize target_class for top-level eval; close #1418
2013-07-30 01:33:02 +09:00
Yukihiro "Matz" Matsumoto
4229b41c68
Merge pull request #1421 from carsonmcdonald/fixfor1419
...
Remove pop that was done when not a return val
2013-07-29 09:16:29 -07:00
Carson McDonald
ff40793fc7
Remove pop that was done when not a return val
2013-07-28 13:15:22 -04:00
Yukihiro "Matz" Matsumoto
e488393cbb
Merge branch 'master' of github.com:mruby/mruby
2013-07-27 02:53:02 +09:00
Yukihiro "Matz" Matsumoto
63e5a3cfb1
refactor out longjmp() to a function
2013-07-25 14:54:17 +09:00
fleuria
620e323d15
replace assert with mrb_assert
2013-07-25 03:00:03 +08:00
fleuria
bbbe996e0d
replace gc_assert with mrb_assert
2013-07-25 02:55:51 +08:00
Yukihiro "Matz" Matsumoto
8a298605e6
remove an unused local variable
2013-07-24 23:58:10 +09:00
Yukihiro "Matz" Matsumoto
5146219cbd
revise gc_mark_gray_list() not to cause SEGV on Ubuntu 32bit
2013-07-24 23:47:52 +09:00
Yukihiro "Matz" Matsumoto
4ad4ce6caf
restore once removed mrb_garbage_collect()
2013-07-24 23:31:46 +09:00
Yukihiro "Matz" Matsumoto
00ef7531b0
Merge pull request #1409 from suzukaze/fix-typos-in-variable.c
...
I fix typos in variable.c.
2013-07-24 07:29:38 -07:00
Yukihiro "Matz" Matsumoto
68249d8cff
Merge pull request #1408 from Fleurer/fix-warning-get-valid-iv-sym
...
suppress the warnings from get_valid_iv_sym()
2013-07-24 07:29:05 -07:00
Yukihiro "Matz" Matsumoto
e1706e65f9
Merge pull request #1407 from Fleurer/gc-introduce-incremental-gc-step
...
separate out `incremental_gc_step()` from `mrb_incremental_gc()`, and misc minor rename
2013-07-24 07:18:50 -07:00
Jun Hiroe
a202446c79
I fix typos in variable.c.
2013-07-24 22:22:54 +09:00
fleuria
4a8e89db2b
suppress the warnings from get_valid_iv_sym()
...
The parameter iv_name SHOULD be string or symbol, but there is no
garantee on it.
2013-07-24 19:13:43 +08:00
fleuria
7bfdcace52
fix warning
2013-07-24 18:27:23 +08:00
fleuria
2591922ec2
rename variable_gray_list to atomic_gray_list
2013-07-24 18:22:53 +08:00
fleuria
88eb0f54e9
introduce gc_mark_gray_list(), and cleanup redaunt code with it
2013-07-24 18:22:53 +08:00
fleuria
0c0efc16b0
gc: replace comment "a round of GC" to "a GC cycle"
2013-07-24 16:22:38 +08:00
fleuria
c852626ea7
rename mrb_garbage_collect() to mrb_full_gc()
2013-07-24 16:17:53 +08:00
fleuria
9cc43a970c
introduce incremental_gc_step()
2013-07-24 16:17:53 +08:00
Yukihiro "Matz" Matsumoto
be419485ba
Merge pull request #1403 from Fleurer/comments-generational-gc
...
add comments for Generational Mode in gc.c
2013-07-23 05:46:17 -07:00
Yukihiro "Matz" Matsumoto
1516822b05
Merge branch 'master' of github.com:mruby/mruby
2013-07-23 21:34:06 +09:00