Project

General

Profile

Actions

Feature #4754

closed

ruby_xcalloc implementation

Feature #4754: ruby_xcalloc implementation

Added by lomereiter (Artyom Tarasov) over 14 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:36370]

Description

Hello!
Why there's no such function as 'vm_xcalloc' in 'gc.c'? Calloc is usually much faster than malloc + memset.

Updated by nobu (Nobuyoshi Nakada) over 14 years ago Actions #1

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r31690.
Artyom, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • gc.c (vm_xcalloc): use calloc provided by platforms.
    fixes #4754
Actions

Also available in: PDF Atom