タグ

Cとmemoryに関するcrafのブックマーク (5)

  • Stand-alone jemalloc

    jemalloc is a general-purpose scalable concurrent malloc(3) implementation. There are several divergent versions of jemalloc in active use, including: FreeBSD's default system allocator (malloc.c, manual page). This was the first public use of jemalloc, and it is still author-maintained. NetBSD's default system allocator (jemalloc.c). Mozilla Firefox's allocator (source code), specifically for Mi

  • 差分指し手生成とメモリコピーの高速化の基礎 - Bonanzaソース完全解析ブログ

    ■ 差分指し手生成とメモリコピーの高速化の基礎 差分指し手生成などをしようと思うと、それぞれの駒についての指し手をシリアル化(ここでは一次元の配列にまとめるの意味)する必要があります。 このとき、細切れになっているメモリを一箇所に集める必要があり、この部分をいかに高速化できるかが差分指し手生成が成功するかどうかの鍵になります。 ■ 高速なメモリコピーとは? どのへんの読者を対象にしていいのかわからないので、今回は基礎ということでメモリコピーの基事項だけ解説します。 差分gencap(駒を捕獲する手)の指し手生成では、駒を捕獲することのできることがわかっている駒を対象に処理します。よって、メモリをコピーするマクロを用意することを考えます。またコピーされるサイズは(指し手が存在することがわかっているところを対象とするので)4バイト以上であり、コピーサイズ0ということはありません。 // メモ

    差分指し手生成とメモリコピーの高速化の基礎 - Bonanzaソース完全解析ブログ
    craf
    craf 2009/12/02
  • Cowboy Programming » Debugging Memory Corruption in Game Development

    Definition:   Memory corruption is an unexpected change in the contents of a memory location. The symptoms of memory corruption can range from hard crashes, all the way through minor glitches, to no symptoms at all. The causes of memory corruption are many and varied, and include memory corruption itself.     In this article I attempt to classify the various ways in which memory corruption can man

  • Building your own memory manager for C C++ projects

    Your document has been indexed by the following search engines: Google Bot has been here 52 times. First crawled 3 months ago. Last crawled 2 days ago. Yahoo! Bot has been here 349 times. First crawled 3 months ago. Last crawled about 14 hours ago. MSN Bot has been here 9 times. First crawled 2 months ago. Last crawled 21 days ago. Latest Searches Leading to this Doc Recent search queries

  • Failgrind: Failmalloc on Valgrind framework

    以前, Failmalloc がなかなか良いという話をした. その中で書いた "malloc() の失敗するタイミングを呼出元の関数名で制限する" 機能. スタックを覗いたりが面倒で vaporware のまま放置してたんだけど, Valgrind を使うとあっさり実現できた. 家リスペクトで Failgrind と命名. (レポジトリ, スナップショット) インストール Failgrind は Valgrind に対する patch になっている. patch といっても中のコードは手つかずで, ビルドシステムに相乗りするだけ. Valgrind は マニュアルに拡張の仕方が載っている だけあって, フレームワークとしての利用を前提としている. なので patch という響きを嫌がらないでください. まず valgrind-3.3.0 を展開: $ tar xvjf ~/Downloa

  • 1