From Jason Turner

[new.delete.dataraces]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpif5owh6f/{from.md → to.md} +8 -12
tmp/tmpif5owh6f/{from.md → to.md} RENAMED
@@ -1,17 +1,13 @@
1
  #### Data races <a id="new.delete.dataraces">[[new.delete.dataraces]]</a>
2
 
3
  For purposes of determining the existence of data races, the library
4
  versions of `operator new`, user replacement versions of global
5
- `operator new`, and the C standard library functions `calloc` and
6
- `malloc` shall behave as though they accessed and modified only the
7
- storage referenced by the return value. The library versions of
8
- `operator delete`, user replacement versions of `operator delete`, and
9
- the C standard library function `free` shall behave as though they
10
- accessed and modified only the storage referenced by their first
11
- argument. The C standard library function `realloc` shall behave as
12
- though it accessed and modified only the storage referenced by its first
13
- argument and by its return value. Calls to these functions that allocate
14
- or deallocate a particular unit of storage shall occur in a single total
15
- order, and each such deallocation call shall happen before the next
16
- allocation (if any) in this order.
17
 
 
1
  #### Data races <a id="new.delete.dataraces">[[new.delete.dataraces]]</a>
2
 
3
  For purposes of determining the existence of data races, the library
4
  versions of `operator new`, user replacement versions of global
5
+ `operator new`, the C standard library functions `calloc` and `malloc`,
6
+ the library versions of `operator delete`, user replacement versions of
7
+ `operator delete`, the C standard library function `free`, and the C
8
+ standard library function `realloc` shall not introduce a data race (
9
+ [[res.on.data.races]]). Calls to these functions that allocate or
10
+ deallocate a particular unit of storage shall occur in a single total
11
+ order, and each such deallocation call shall happen before (
12
+ [[intro.multithread]]) the next allocation (if any) in this order.
 
 
 
 
13