summaryrefslogtreecommitdiffstats
path: root/test/integration/rallocx.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace tabs following #define with spaces.Jason Evans2017-01-211-8/+8
| | | | This resolves #564.
* Remove extraneous parens around return arguments.Jason Evans2017-01-211-7/+7
| | | | This resolves #540.
* Update brace style.Jason Evans2017-01-211-22/+11
| | | | | | | Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
* Remove leading blank lines from function bodies.Jason Evans2017-01-131-3/+0
| | | | This resolves #535.
* Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *).Jason Evans2016-10-281-2/+2
| | | | | This avoids warnings in some cases, and is otherwise generally good hygiene.
* Reduce NSZS, since NSIZES (was nsizes) can not be so large.Jason Evans2016-06-061-1/+1
|
* Rename huge to large.Jason Evans2016-06-061-8/+8
|
* Remove invalid tests.Jason Evans2016-02-271-9/+1
| | | | | Remove invalid tests that were intended to be tests of (hugemax+1) OOM, for which tests already exist.
* Cast PTRDIFF_MAX to size_t before adding 1.Jason Evans2016-02-261-4/+4
| | | | | | This fixes compilation warnings regarding integer overflow that were introduced by 0c516a00c4cb28cff55ce0995f756b5aae074c9e (Make *allocx() size class overflow behavior defined.).
* Make *allocx() size class overflow behavior defined.Jason Evans2016-02-251-1/+83
| | | | | | | Limit supported size and alignment to HUGE_MAXCLASS, which in turn is now limited to be less than PTRDIFF_MAX. This resolves #278 and #295.
* Silence miscellaneous 64-to-32-bit data loss warnings.Jason Evans2016-02-241-5/+5
|
* Fix xallocx() bugs.Jason Evans2015-09-121-1/+1
| | | | | Fix xallocx() bugs related to the 'extra' parameter when specified as non-zero.
* Fix huge_ralloc_no_move() to succeed more often.Jason Evans2015-07-251-2/+3
| | | | | | | | Fix huge_ralloc_no_move() to succeed if an allocation request results in the same usable size as the existing allocation, even if the request size is smaller than the usable size. This bug did not cause correctness issues, but it could cause unnecessary moves during reallocation.
* Fixup after 3a730df (Avoid pointer arithmetic on void*[...])Mike Hommey2014-05-281-2/+2
|
* Avoid pointer arithmetic on void* in test/integration/rallocx.cMike Hommey2014-05-271-3/+5
|
* Reduce maximum tested alignment.Jason Evans2014-03-301-2/+2
| | | | | | | Reduce maximum tested alignment from 2^29 to 2^25. Some systems may not have enough contiguous virtual memory to satisfy the larger alignment, but the smaller alignment is still adequate to test multi-chunk alignment.
* Add rallocx() test of both alignment and zeroing.Jason Evans2013-12-161-5/+17
|
* Add zero/align tests for rallocx().Jason Evans2013-12-151-1/+120
|
* Implement the *allocx() API.Jason Evans2013-12-131-0/+51
Implement the *allocx() API, which is a successor to the *allocm() API. The *allocx() functions are slightly simpler to use because they have fewer parameters, they directly return the results of primary interest, and mallocx()/rallocx() avoid the strict aliasing pitfall that allocm()/rallocx() share with posix_memalign(). The following code violates strict aliasing rules: foo_t *foo; allocm((void **)&foo, NULL, 42, 0); whereas the following is safe: foo_t *foo; void *p; allocm(&p, NULL, 42, 0); foo = (foo_t *)p; mallocx() does not have this problem: foo_t *foo = (foo_t *)mallocx(42, 0);