about summary refs log tree commit diff
path: root/src/doc/nomicon
AgeCommit message (Collapse)AuthorLines
2015-08-06Revise TARPL's description for allocating 0 bytesJeehoon Kang-2/+2
In Section 3.2, TARPL says that "standard allocators (including jemalloc, the one used by default in Rust) generally consider passing in 0 for the size of an allocation as Undefined Behaviour." However, the C standard and jemalloc manual says allocating zero bytes should succeed: - C11 7.22.3 paragraph 1: "If the size of the space requested is zero, the behavior is implementation-defined: either a null pointer is returned, or the behavior is as if the size were some nonzero value, except that the returned pointer shall not be used to access an object." - [jemalloc manual](http://www.freebsd.org/cgi/man.cgi?query=jemalloc&sektion=3): "The malloc and calloc functions return a pointer to the allocated memory if successful; otherwise a NULL pointer is returned and errno is set to ENOMEM." + Note that the description for `allocm` says "Behavior is undefined if size is 0," but it is an experimental API.
2015-08-06Some rerp-rust improvements.Taliesin Beynon-22/+24
* Some clarifying rephrasing. * Rename B.x back to B.a. * Make null pointer optimization section bit more concrete.
2015-08-05Rollup merge of #27527 - aij:tarpl, r=GankroManish Goregaokar-8/+8
Just some grammar fixes and an assumed missing word. r? @Gankro
2015-08-04Fix some grammar in The Advanced Rust Programming LanguageIvan Jager-8/+8
2015-08-04Fix variance orderingAlexis Beingessner-2/+2
I thought this was actually a huge error and I'd have to rewrite a bunch but it looks like everything else was correct. Closes #27457
2015-08-03rename TARPL to The RustinomiconAlexis Beingessner-0/+5470