Sha256: bfc22a3104010a7f794e5ec3ce9842a950571e056af419f2eb821a773c9c0989

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

#include <vm_core.h>

#define ruby_current_thread ((rb_thread_t *)RTYPEDDATA_DATA(rb_thread_current()))

extern void
update_stack_size(debug_context_t *context) 
{
  rb_thread_t *thread;

  thread = ruby_current_thread;
  /* see backtrace_each in vm_backtrace.c */
  context->stack_size = (int)(RUBY_VM_END_CONTROL_FRAME(thread) - thread->cfp - 1);
  if (CTX_FL_TEST(context, CTX_FL_UPDATE_STACK)) {
    context->calced_stack_size = context->stack_size;
    CTX_FL_UNSET(context, CTX_FL_UPDATE_STACK);
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
debase-0.2.2.beta5 ext/hacks.h
debase-0.2.2.beta4 ext/hacks.h
debase-0.2.2.beta3 ext/hacks.h