Browse Subversion Repository
Contents of /trunk/ruby-1.8.7-p160-tn.patch
Parent Directory
| Revision Log
Revision 4 -
( show annotations)
( download)
( as text)
Sat Sep 3 06:22:57 2011 UTC
(12 years, 6 months ago)
by toshinagata1964
File MIME type: text/x-diff
File size: 1027 byte(s)
initial import
| 1 |
--- ruby-1.8.7-p160/eval.c 2009-03-23 18:28:31.000000000 +0900 |
| 2 |
+++ ruby-1.8.7-p160-tn/eval.c 2009-09-22 18:53:47.000000000 +0900 |
| 3 |
@@ -3145,6 +3145,9 @@ |
| 4 |
goto while_out; |
| 5 |
do { |
| 6 |
while_redo: |
| 7 |
+ EXEC_EVENT_HOOK(RUBY_EVENT_LINE, node, self, |
| 8 |
+ ruby_frame->last_func, |
| 9 |
+ ruby_frame->last_class); /* 20090829 TN */ |
| 10 |
rb_eval(self, node->nd_body); |
| 11 |
while_next: |
| 12 |
; |
| 13 |
@@ -3180,6 +3183,9 @@ |
| 14 |
goto until_out; |
| 15 |
do { |
| 16 |
until_redo: |
| 17 |
+ EXEC_EVENT_HOOK(RUBY_EVENT_LINE, node, self, |
| 18 |
+ ruby_frame->last_func, |
| 19 |
+ ruby_frame->last_class); /* 20090829 TN */ |
| 20 |
rb_eval(self, node->nd_body); |
| 21 |
until_next: |
| 22 |
; |
| 23 |
--- ruby-1.8.7-p160/gc.c 2009-03-27 19:25:23.000000000 +0900 |
| 24 |
+++ ruby-1.8.7-p160-tn/gc.c 2009-09-23 21:16:13.000000000 +0900 |
| 25 |
@@ -1215,7 +1215,7 @@ |
| 26 |
if (malloc_limit < GC_MALLOC_LIMIT) malloc_limit = GC_MALLOC_LIMIT; |
| 27 |
} |
| 28 |
malloc_increase = 0; |
| 29 |
- if (freed < free_min) { |
| 30 |
+ if (freed < free_min || freelist == 0) { |
| 31 |
add_heap(); |
| 32 |
} |
| 33 |
during_gc = 0; |
| |