Project

General

Profile

Actions

Feature #4754

closed

ruby_xcalloc implementation

Added by lomereiter (Artyom Tarasov) about 14 years ago. Updated about 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.

Actions #1

Updated by nobu (Nobuyoshi Nakada) about 14 years ago

  • 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: Atom PDF

Like0
Like0