forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit93ca02e
committed
Mark constantly allocated dest receiver as const.
This allows the compiler / linker to mark affected pages as read-only.Doing so requires casting constness away, as CreateDestReceiver()returns both constant and non-constant dest receivers. That's finethough, as any modification of the statically allocated receiverswould already have been a bug (and would now be caught on someplatforms).Discussion:https://postgr.es/m/20181015200754.7y7zfuzsoux2c4ya@alap3.anarazel.de1 parentd1211c6 commit93ca02e
1 file changed
+21
-12
lines changedLines changed: 21 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 |
| - | |
| 70 | + | |
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
| 75 | + | |
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
| 80 | + | |
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
| 85 | + | |
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
91 |
| - | |
92 |
| - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 |
| |
94 | 98 |
| |
95 | 99 |
| |
| |||
108 | 112 |
| |
109 | 113 |
| |
110 | 114 |
| |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
111 | 120 |
| |
112 | 121 |
| |
113 | 122 |
| |
114 | 123 |
| |
115 | 124 |
| |
116 | 125 |
| |
117 | 126 |
| |
118 |
| - | |
| 127 | + | |
119 | 128 |
| |
120 | 129 |
| |
121 |
| - | |
| 130 | + | |
122 | 131 |
| |
123 | 132 |
| |
124 |
| - | |
| 133 | + | |
125 | 134 |
| |
126 | 135 |
| |
127 |
| - | |
| 136 | + | |
128 | 137 |
| |
129 | 138 |
| |
130 | 139 |
| |
| |||
146 | 155 |
| |
147 | 156 |
| |
148 | 157 |
| |
149 |
| - | |
| 158 | + | |
150 | 159 |
| |
151 | 160 |
| |
152 | 161 |
| |
|
0 commit comments
Comments
(0)