mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.c (ruby_vm_destruct, thread_memsize): fix argument type to make
RUBY_MARK_FREE_DEBUG available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f5865e251
commit
b317738edc
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 24 22:31:44 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* vm.c (ruby_vm_destruct, thread_memsize): fix argument type to make
|
||||
RUBY_MARK_FREE_DEBUG available.
|
||||
|
||||
Tue Nov 24 21:25:21 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* error.c: include errno.h at beginning.
|
||||
|
|
7
vm.c
7
vm.c
|
@ -1480,10 +1480,11 @@ rb_vm_mark(void *ptr)
|
|||
#define vm_free 0
|
||||
|
||||
int
|
||||
ruby_vm_destruct(rb_vm_t *vm)
|
||||
ruby_vm_destruct(void *ptr)
|
||||
{
|
||||
RUBY_FREE_ENTER("vm");
|
||||
if (vm) {
|
||||
if (ptr) {
|
||||
rb_vm_t *vm = ptr;
|
||||
rb_thread_t *th = vm->main_thread;
|
||||
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
|
||||
struct rb_objspace *objspace = vm->objspace;
|
||||
|
@ -1688,8 +1689,6 @@ thread_free(void *ptr)
|
|||
static size_t
|
||||
thread_memsize(const void *ptr)
|
||||
{
|
||||
RUBY_FREE_ENTER("thread");
|
||||
|
||||
if (ptr) {
|
||||
const rb_thread_t *th = ptr;
|
||||
size_t size = sizeof(rb_thread_t);
|
||||
|
|
Loading…
Reference in a new issue