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 |
|
Yukihiro Matsumoto
|
8121e0d354
|
should mark child env from method (proc) objects
|
2012-06-24 21:46:24 +09:00 |
|
Masamitsu MURASE
|
e53eea76eb
|
Modify gc_gray_mark for Struct.
|
2012-06-24 17:38:20 +09:00 |
|
Masamitsu MURASE
|
9a1f588749
|
Modify obj_free to free instances of Struct.
|
2012-06-24 17:29:41 +09:00 |
|
Masamitsu MURASE
|
7778b5ca1c
|
Implement garbage collection for struct.
|
2012-06-24 06:28:17 +09:00 |
|
Yukihiro Matsumoto
|
ef50e63a63
|
remove RuntimeError from mrb_state
|
2012-06-20 20:43:27 +09:00 |
|
Yukihiro Matsumoto
|
76f7aecff3
|
use ENABLE/DISABLE instead of INCLUDE for configuration macro names
|
2012-06-15 15:34:49 +09:00 |
|
Yukihiro Matsumoto
|
1a369de489
|
remove src/gc.h
|
2012-06-07 01:18:17 +09:00 |
|
Yukihiro Matsumoto
|
4c01f002fd
|
mruby/array.h: rename buf to ptr
|
2012-06-05 23:20:36 +09:00 |
|
Yukihiro Matsumoto
|
e3d17e54f8
|
mruby/string.h: rename buf to ptr
|
2012-06-05 23:17:09 +09:00 |
|
Yukihiro Matsumoto
|
f24a52b04a
|
remove mrb_open NULL check for small test programs. They are only for proof-on-concept test, not production code. Adding precise checks are not needed for those code
|
2012-06-04 01:46:04 +09:00 |
|
Jon
|
2fff59dc86
|
Check mrb_open return value for NULL
|
2012-06-03 11:11:35 -04:00 |
|
Yukihiro Matsumoto
|
e4529c065d
|
make arrays to share bodies
|
2012-06-03 23:05:31 +09:00 |
|
Yukihiro Matsumoto
|
597978c169
|
mrb_malloc/calloc/realloc should call mrb_garbage_collect before returning NULL
|
2012-06-03 17:34:23 +09:00 |
|
Yukihiro Matsumoto
|
28b9619bb4
|
should decref shared string body on gc_free
|
2012-06-03 15:45:06 +09:00 |
|
Yukihiro Matsumoto
|
12d75223d6
|
make shared string to reference-counted C structure to reduce GC pressure
|
2012-06-03 07:55:39 +09:00 |
|
Yukihiro Matsumoto
|
e36285769a
|
new API mrb_gc_protect() to add object to arena
|
2012-06-01 02:40:52 +09:00 |
|
Yukihiro Matsumoto
|
ae9d9a0781
|
correctly share string bodies
|
2012-05-31 22:49:38 +09:00 |
|
Yukihiro Matsumoto
|
326fc888e4
|
allow string shared body
|
2012-05-31 19:16:48 +09:00 |
|
Yukihiro Matsumoto
|
64fc4ac332
|
resolve conflict
|
2012-05-31 15:32:38 +09:00 |
|
Yukihiro Matsumoto
|
e5d1dd2a8e
|
MRB_GC_STRESS for GC test
|
2012-05-30 16:01:48 +09:00 |
|
Yukihiro Matsumoto
|
b662a12ee5
|
remove spaces after open paren
|
2012-05-30 14:51:39 +09:00 |
|
Yukihiro Matsumoto
|
c2f427c5ed
|
mark ci->proc as well
|
2012-05-30 14:44:33 +09:00 |
|
Yukihiro Matsumoto
|
42b4060c9d
|
force room in arena before raising arena overflow error
|
2012-05-29 22:14:32 +09:00 |
|
Yukihiro Matsumoto
|
c87ec7c33b
|
compact arena before raising exception; also reserve a few slots to allocate exception objects
|
2012-05-29 10:29:01 +09:00 |
|
Yukihiro Matsumoto
|
ad9e841c53
|
made mrb_get_args() better (optinal args, type checks); close #173 #176
|
2012-05-24 01:09:36 +09:00 |
|
Yukihiro Matsumoto
|
4523bee953
|
cast style consistency
|
2012-05-23 03:31:55 +09:00 |
|