Commit Graph

92 Commits

Author SHA1 Message Date
MATSUMOTO Ryosuke 809732ab40 Adjust some indents 2013-03-02 10:26:54 -08:00
mattn 261efd8e9d Merge branch 'master' into pluggable_struct 2013-03-01 14:42:42 +09:00
mattn 4c4cf0a4ce Pluggable Struct 2013-03-01 14:42:34 +09:00
mattn 138ecf4723 Pluggable Struct 2013-03-01 13:37:46 +09:00
Carson McDonald 3d3ebbc9cd Fix arena size check. 2013-02-28 09:24:08 -05:00
Masaki Muranaka d864648506 Clean code up. 2013-02-26 19:16:48 +09:00
Yukihiro Matz Matsumoto 59cf4bca15 rename RVALUE union members 2013-02-20 23:19:48 +09:00
Yukihiro Matz Matsumoto 8b44e8dbd8 add RData entrie to RVALUE union 2013-02-20 23:15:11 +09:00
mattn b1a5146ea8 Pluggable Regexp 2013-02-15 04:38:27 +09:00
Narihiro Nakamura 7841a0cac5 Clear all old flags, even if we change the gc mode during the major gc. 2013-01-17 10:20:21 +09:00
Yukihiro "Matz" Matsumoto 016e821736 Merge pull request #739 from cremno/use-b-specifier
Use new mrb_get_args binary specifier.
2013-01-16 01:40:27 -08:00
Narihiro Nakamura 3620cc674c mrb_field_write_barrier paints also gray in the major collector.
These objects will be traversed after a minor collect cycle.
2013-01-16 16:01:40 +09:00
Cremno 0a22c59938 use the new specifier b instead of o 2013-01-15 09:15:10 +01:00
Yukihiro "Matz" Matsumoto 315ecb60cd Merge pull request #730 from masamitsu-murase/modify_range_initialize
Modify `Range#initialize`
2013-01-13 18:11:19 -08:00
Masamitsu MURASE f9b836a677 Initialize edges of RRange. 2013-01-13 22:04:45 +09:00
Narihiro Nakamura a80e9b5bc8 Doesn't clear black of all marked objects in major collections.
Since the minor collector doesn't need to mark these objects, the worst-case pause time is reduced.
2013-01-13 18:56:23 +09:00
Yukihiro "Matz" Matsumoto bcabae43a4 Merge pull request #703 from authorNari/skip_sweeping_old
Skip sweeping old slots which don't contain any young object in the minor GC
2013-01-07 01:29:56 -08:00
Narihiro Nakamura 542eda83ab Skip sweeping old slots which don't contain any young object. 2013-01-07 16:37:32 +09:00
Masaki Muranaka 0f99322f27 gc.c: Enable DEBUG(x) if GC_DEBUG is defined.
vm.c: Enable DEBUG(x) if VM_DEBUG is defined.
2013-01-07 15:28:05 +09:00
Narihiro Nakamura 5dfefb95df Add the generational gc 2013-01-07 01:47:21 +09:00
Narihiro Nakamura 8c27e43779 Fix a wrong comment 2012-12-31 15:59:23 +09:00
Xuejie Xiao 4bbf7a3e12 Fix build on c++ compiler 2012-11-08 11:32:45 -05:00
Yukihiro Matz Matsumoto 3ceadfa5b2 inline include/mruby/object.h 2012-11-05 06:10:22 +09:00
Yukihiro Matz Matsumoto c903910c6b replace RBASIC by mrb_basic 2012-11-04 13:56:08 +09:00
Yukihiro Matz Matsumoto 902dd63803 remove FL_XXX macros 2012-11-04 05:15:22 +09:00
Masaki Muranaka f3090c3000 Use substitution instead of memset in structure initialization. 2012-10-29 11:29:57 +09:00
Yukihiro Matsumoto 950204bc4d remove flags from irep 2012-08-29 11:45:36 +09:00
Yukihiro Matsumoto d04a7ec632 free heap pages from mrb_close() 2012-08-28 02:11:00 +09:00
Masamitsu MURASE a851bcd631 Refer to irep_capa as well as irep_len when irep is marked by GC.
Initialize mrb->irep array with 0 when realloc is called.
2012-08-21 02:01:26 +09:00
Yukihiro Matsumoto e27cc402da replace RiteVM in comments by mruby 2012-08-19 08:35:23 +09:00
Yukihiro Matsumoto b8fc484d2e allocf should take ud; https://twitter.com/junjis0203/status/236949976461221889 2012-08-19 07:48:40 +09:00
Yukihiro Matsumoto 97b7eb6096 rename MRUBY_OBJECT_HEADER to MRB_OBJECT_HEADER 2012-08-18 19:05:18 +09:00
Yukihiro Matsumoto 8d017ebdb7 add GC.disable and GC.enable 2012-08-09 03:58:52 +09:00
Masaki Muranaka 81b41e84e9 Fix a memory leak in mrb_realloc(). 2012-08-03 14:03:53 +09:00
Yukihiro Matsumoto bc7dc06c51 mark mrb->exc object 2012-07-31 10:57:14 +09:00
Yukihiro Matsumoto 14410d1391 configurable MRB_HEAP_PAGE_SIZE 2012-07-30 13:18:24 +09:00
Max Anselm 5a4beeed2d Make all(?) void casts explicit for C++ 2012-07-29 19:48:48 -04:00
Yukihiro Matsumoto 88043c5ccd remove <stdio.h> that added for debugging 2012-07-27 12:54:19 +09:00
Yukihiro Matsumoto 638a66fd78 adjust ci->nregs for C implemented methods 2012-07-27 10:05:47 +09:00
Yukihiro Matsumoto 92d37403f1 temporary protection not to access out of stack 2012-07-27 05:57:22 +09:00
crimsonwoods d61cb77346 fix: SIZE_MAX is not defined in "stdint.h" 2012-07-22 23:10:15 +09:00
Junji Sawada 96366117ea Remove unnecessary header inclusion 2012-07-14 11:39:25 +09:00
Yukihiro Matsumoto 48c73ac630 less <stdio.h> 2012-07-13 10:13:47 +09:00
Masaki Muranaka 611cf71a10 Use mrb_calloc if you want zero cleard buffers. 2012-07-08 11:33:49 +09:00
Masaki Muranaka a064038d85 Add a check for unsigned integer wrapping. 2012-07-07 12:38:07 +09:00
Masaki Muranaka 47407768fd Fix underlying bugs. mrb_calloc will be crashed in case "nelem == 0" or "p == NULL" 2012-07-07 12:09:59 +09:00
Masamitsu MURASE 780f54e1eb Free iv of MRB_TT_DATA instance. 2012-07-01 01:52:37 +09:00
Daniel Bovensiepen 2c8886c80d Make strucdata optional if ENABLE_STRUCT is activitated 2012-06-29 22:59:53 +08:00
Yukihiro "Matz" Matsumoto bf747efdd1 Merge pull request #317 from masamitsu-murase/fix_struct_new_gc
Fix GC of struct
2012-06-24 06:32:48 -07:00
Yukihiro "Matz" Matsumoto 97c9c859d1 Merge pull request #313 from masamitsu-murase/fix_struct_new
Fix Struct#new and GC
2012-06-24 06:11:28 -07:00