/
notes.xml
9296 lines (9022 loc) · 330 KB
/
notes.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">
<chapter>
<header>
<copyright>
<year>2004</year><year>2012</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
The contents of this file are subject to the Erlang Public License,
Version 1.1, (the "License"); you may not use this file except in
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at http://www.erlang.org/.
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
under the License.
</legalnotice>
<title>ERTS Release Notes</title>
<prepared>otp_appnotes</prepared>
<docno>nil</docno>
<date>nil</date>
<rev>nil</rev>
<file>notes.xml</file>
</header>
<p>This document describes the changes made to the ERTS application.</p>
<section><title>Erts 5.9.2</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
Fix erl_prim_loader errors in handling of primary
archive. The following errors have been corrected:</p>
<p>
<list> <item> If primary archive was named "xxx", then a
file in the same directory named "xxxyyy" would be
interpreted as a file named "yyy" inside the archive.
</item> <item> erl_prim_loader did not correctly create
and normalize absolute paths for primary archive and
files inside it, so unless given with exact same path
files inside the archive would not be found. E.g. if
escript was started as /full/path/to/xxx then
"./xxx/file" would not be found since erl_prim_loader
would try to match /full/path/to/xxx with
/full/path/to/./xxx. Same problem with ../. </item>
<item> Depending on how the primary archive was built,
erl_prim_loader:list_dir/1 would sometimes return an
empty string inside the file list. This was a virtual
element representing the top directory of the archive.
This has been removed. </item> </list></p>
<p>
Thanks to Tuncer Ayaz and Shunichi Shinohara for
reporting and co-authoring corrections.</p>
<p>
Own Id: OTP-10071</p>
</item>
<item>
<p>Fix: Add port-I/O statistics for active once and true
and not only active false.</p>
<p>
Own Id: OTP-10073</p>
</item>
<item>
<p>
The 64-bit windows installer did not look in the right
directories for 64-bit version of Microsoft Visual C++
2010 Redistibutable Package and hence took the wrong
decision about having to install the redistributable
package if the 32-bit version was installed but not the
64-bit and vice versa. This bug has now been fixed
Furthermore the sub-installer for the redistributable
package is now run in silent mode if the erlang installer
is.</p>
<p>
Own Id: OTP-10096</p>
</item>
<item>
<p>
epmd would fail to start automatically when starting a
distributed erlang node installed in a location with a
whitespace in the path.</p>
<p>
Own Id: OTP-10106</p>
</item>
<item>
<p>
A more or less harmless bug that sometimes caused memory
deallocations to be delayed longer than intended has been
fixed.</p>
<p>
Own Id: OTP-10116</p>
</item>
<item>
<p>
Fix bug causing emulator crash when running HiPE on ARM.
Bug has existed since R15B.</p>
<p>
Own Id: OTP-10137</p>
</item>
<item>
<p> A bug regarding spaces in C function prototypes has
been fixed. (Thanks to Richard O'Keefe.) </p>
<p>
Own Id: OTP-10138</p>
</item>
<item>
<p>
Corrected dtrace pid length in message related probes.
(Thanks to Zheng Siyao)</p>
<p>
Own Id: OTP-10142</p>
</item>
<item>
<p>
Correct formating in exit error messages</p>
<p>
Ensure displayed sizes are not negative. (Thanks to
Michael Santos)</p>
<p>
Own Id: OTP-10148</p>
</item>
<item>
<p>
fix escript/primary archive reloading</p>
<p>
If the mtime of an escript/primary archive file changes
after being added to the code path, correctly reload the
archive and update the cache. (Thanks to Tuncer Ayaz)</p>
<p>
Own Id: OTP-10151</p>
</item>
<item>
<p>
Doc fix: link from erlang:now/0 to os:timestamp/0</p>
<p>
Sometimes os:timestamp/0 is more appropriate than
erlang:now/0. The documentation for the former has a link
to the latter; this patch adds a link in the other
direction to make os:timestamp/0 more visible. Thanks to
Magnus Henoch</p>
<p>
Own Id: OTP-10180</p>
</item>
<item>
<p>
The caret in the werl window (on Windows) could appear at
the wrong place after regaining focus. This is now
corrected.</p>
<p>
Own Id: OTP-10181</p>
</item>
<item>
<p>
Fix bug that in some cases could cause corrupted binaries
in ETS tables with <c>compressed</c> option.</p>
<p>
Own Id: OTP-10182</p>
</item>
<item>
<p>
Fix use of "clever" mktime</p>
<p>
Commit 1eef765 introduced regression (conditional
_always_ evaluates to true) in which
erlang:localtime_to_universaltime/2 stopped working on
systems configured with timezone without DST (i.e. UTC)
on *BSD platforms: 1>
erlang:localtime_to_universaltime({{2012,1,1},{0,0,0}},
true). ** exception error: bad argument Thanks to Piotr
Sikora</p>
<p>
Own Id: OTP-10187</p>
</item>
<item>
<p>
Relocate bodies of DTrace probes to the statically-linked
VM.</p>
<p>
Due to various operating systems (in both the DTrace and
SystemTap worlds) not fully supporting DTrace probes (or
SystemTap-compatibility mode probes) in shared libraries,
we relocate those probes to the statically-linked virtual
machine. This could be seen as pollution of the pristine
VM by a (yet) experimental feature. However:</p>
<p>
1. This code can be eliminated completely by the C
preprocessor. 2. Leaving the probes in the dyntrace NIF
shared library simply does not work correctly on too many
platforms. *Many* thanks to Macneil Shonle at Basho for
assisting when my RSI-injured fingers gave out. (note:
Solaris 10 and FreeBSD 9.0-RELEASE can take a long time
to compile)</p>
<p>
Own Id: OTP-10189</p>
</item>
<item>
<p>
Fix bug in <c>ets:test_ms/2</c> that could cause emulator
crash when using <c>'$_'</c> in match spec.</p>
<p>
Own Id: OTP-10190</p>
</item>
<item>
<p>
Supplying a filename longer than the operating system
MAX_PATH to file:read_link/1 would cause a crash
(Segemntation fault/Critical Error) on all platforms.
This is now corrected.</p>
<p>
Own Id: OTP-10200</p>
</item>
<item>
<p>
If Perl was configured to interpret files as being
encoded in UTF-8, the build would crash in
<c>make_preload</c>. (Thanks to Aaron Harnly for noticing
this issue.)</p>
<p>
Own Id: OTP-10201</p>
</item>
<item>
<p>
Fix the erlc -MP flag</p>
<p>
Because of a copy-and-paste error in erlc.c, the -MP flag
had the same effect as -MG. As a workaround, you had to
pass +makedep_phony to enable the MP option. This patch
makes -MP work as intended.</p>
<p>
Own Id: OTP-10211</p>
</item>
<item>
<p>
Allow mixed IPv4 and IPv6 addresses to sctp_bindx</p>
<p>
Also allow mixed address families to bind, since the
first address on a multihomed sctp socket must be bound
with bind, while the rest are to be bound using
sctp_bindx. At least Linux supports adding address of
mixing families. Make inet_set_faddress function
available also when HAVE_SCTP is not defined, since we
use it to find an address for bind to be able to mix ipv4
and ipv6 addresses. Thanks to Tomas Abrahamsson</p>
<p>
Own Id: OTP-10217</p>
</item>
<item>
<p>
Fix support for leap seconds-aware timezones</p>
<p>
erlang:universaltime_to_localtime is leap seconds-aware
(since 2008), however erlang:localtime_to_universaltime
is not, which gives surprising results on systems
configured with leap seconds-aware timezones: 1>
erlang:universaltime_to_localtime({{2012,1,1},{0,0,0}}).
{{2012,1,1},{0,0,0}} 2>
erlang:localtime_to_universaltime({{2012,1,1},{0,0,0}}).
{{2012,1,1},{0,0,24}} and completely breaks
calendar:local_time_to_universal_time_dst: 3>
calendar:local_time_to_universal_time_dst({{2011,1,1},{0,0,0}}).
[] Thanks to Piotr Sikora</p>
<p>
Own Id: OTP-10227</p>
</item>
<item>
<p>
erlsrv: gracefully stop emulator on Windows shutdown</p>
<p>
Windows will send the SERVICE_CONTROL_SHUTDOWN event to
the service control handler when shutting down the
system. Instead of ignoring the event, erlsrv will now
invoke the stop action. Likewise, the Erlang emulator
(and it's po drivers) must not quit upon reception of the
CTRL_SHUTDOWN_EVENT event in th console control handler.
Thanks to Jan Kloetzke</p>
<p>
Own Id: OTP-10228</p>
</item>
<item>
<p>
Fix dtrace bug in file rename operation.</p>
<p>
Own Id: OTP-10234</p>
</item>
<item>
<p>
Fix bug in memory management of driver port data locks
(PDL). In some cases PDLs could be deallocated before
<c>ready_async</c> or <c>async_free</c> callback was
called.</p>
<p>
Own Id: OTP-10249</p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>Add port and suspend options to lock-counter
profiling. (Thanks to Rick Reed)</p>
<p>
Own Id: OTP-10051</p>
</item>
<item>
<p>
Latency when using the active_once option in gen_tcp
communication is reduced.</p>
<p>
Own Id: OTP-10055 Aux Id: sto139 </p>
</item>
<item>
<p>Remove bit8 option support from inet</p>
<p>
Own Id: OTP-10056</p>
</item>
<item>
<p>
The OS Pid of a port program is now available by calling
erlang:port_info(Port,os_pid), Thanks to Matthias Lang
for the original patch.</p>
<p>
Own Id: OTP-10057</p>
</item>
<item>
<p>
Fix openpty usage in run_erl. </p>
<p>
Reopening a slave file descriptor which was closed
earlier could lead to a misbehaving connection. This has
now been remedied.</p>
<p>
Own Id: OTP-10076</p>
</item>
<item>
<p>
Remove all code, documentation, options and diagnostic
functions which were related to the experimental hybrid
heap implementation.</p>
<p>
Own Id: OTP-10105</p>
</item>
<item>
<p>
Optimizations of memory deallocations.</p>
<p>
Own Id: OTP-10162 Aux Id: OTP-7775 </p>
</item>
<item>
<p>
Optimization of process locking.</p>
<p>
Own Id: OTP-10163</p>
</item>
<item>
<p>
Added a xcomp example file for powerpc-dso-linux-gnu</p>
<p>
Own Id: OTP-10198</p>
</item>
<item>
<p>
Detect when middle endian doubles are used by a platform
and account for it when decoding floats. (Thanks to Mike
Sperber)</p>
<p>
Own Id: OTP-10209</p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.9.1.2</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
On Linux systems using heart (erl -heart) and a
HEAR_BEAT_TIMEOUT less than default, heart could fire
even though Erlang was running fine after approx 298 to
497 days (depending on kernel config). This was due to
the behaviour of the times(2) system call. Usage of
times(2) is now replaced with clock_gettime(2) and the
CLOCK_MONOTONIC clock, resulting in a more stable
solution. The Erlang VM itself has used clock_gettime(2)
on linux since before R12B, so this only affects the
heart program.</p>
<p>
Own Id: OTP-10111 Aux Id: seq12075 </p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.9.1.1</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
If threads support for the runtime system had been
disabled at compile time (<c>--disable-threads</c> had
been passed to <c>configure</c>), and the <c>+A</c>
command line argument of <c>erl</c> was passed when
starting the runtime system, <seealso
marker="erl_driver#driver_system_info">driver_system_info()</seealso>
erroneously claimed that the runtime system had async
threads even though it had not.</p>
<p>
Due to this bug the file driver did not split tasks into
smaller chunks, but instead completed the whole task at
once, i.e., the scheduler got occupied with I/O for a
longer time than intended.</p>
<p>
Own Id: OTP-10059</p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>
A proposal for a new scheduler wakeup strategy has been
implemented. For more information see the documentation
of the <seealso marker="erl#+sws">+sws</seealso> command
line argument of <c>erl</c>.</p>
<p>
Own Id: OTP-10033 Aux Id: Seq12025 </p>
</item>
<item>
<p>
A switch for configuration of busy wait length for
scheduler threads has been added. For more information
see the documentation of the <seealso
marker="erl#+sbwt">+sbwt</seealso> command line argument
of <c>erl</c>.</p>
<p>
Own Id: OTP-10044 Aux Id: Seq11976 </p>
</item>
<item>
<p>
The extra memory barriers introduced by bug-fix OTP-9281
were unnecessarily used also on tables without the
<c>write_concurrency</c> option enabled. This could
unnecessarily degrade performance of ETS tables without
<c>write_concurrency</c> on some hardware (e.g. PowerPC)
while not effecting performance at all on other hardware
(e.g. x86/x86_64).</p>
<p>
OTP-9281 (R14B03): ETS tables using the
<c>write_concurrency</c> option could potentially get
into an internally inconsistent state.</p>
<p>
Own Id: OTP-10048 Aux Id: OTP-9281 </p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.9.1</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p><c>erlang:system_profile</c> errorneous profiled the
profiler process when observing runnable processes. This
has been corrected. </p>
<p>
Own Id: OTP-9849</p>
</item>
<item>
<p>Calling trace_info/2 asking for information about a
function that had native could could crash the run-time
system.</p>
<p>
Own Id: OTP-9886</p>
</item>
<item>
<p>
reduce smp locking time range in erts_garbage_collect
(thanks to Jovi Zhang)</p>
<p>
Own Id: OTP-9912</p>
</item>
<item>
<p>
Fix typo in supervisor behaviour doc (Thanks to Ricardo
Catalinas Jiménez)</p>
<p>
Own Id: OTP-9924</p>
</item>
<item>
<p>
Correct spelling of registered (Thanks to Richard
Carlsson)</p>
<p>
Own Id: OTP-9925</p>
</item>
<item>
<p>
erts: Remove unused variable (Thanks to Jovi Zhang)</p>
<p>
Own Id: OTP-9926</p>
</item>
<item>
<p>
Fix bug in ETS with <c>compressed</c> option and
insertion of term containing large integers (>2G) on
64-bit machines. Seen to cause emulator crash. (Thanks to
Diego Llarrull for excellent bug report)</p>
<p>
Own Id: OTP-9932</p>
</item>
<item>
<p>
Handle Linux OS where /sys/devices/system/node is only
readable by root. Fallback to /sys/devices/system/cpu for
topology info.</p>
<p>
Own Id: OTP-9978</p>
</item>
<item>
<p> When an escript ends now all printout to standard
output and standard error gets out on the terminal. This
bug has been corrected by changing the behaviour of
erlang:halt/0,1, which should fix the same problem for
other escript-like applications, i.e that data stored in
the output port driver buffers got lost when printing on
a TTY and exiting through erlang:halt/0,1. </p>
<p> The BIF:s erlang:halt/0,1 has gotten improved
semantics and there is a new BIF erlang:halt/2 to
accomplish something like the old semantics. See the
documentation. </p>
<p> Now erlang:halt/0 and erlang:halt/1 with an integer
argument will close all ports and allow all pending async
threads operations to finish before exiting the emulator.
Previously erlang:halt/0 and erlang:halt(0) would just
wait for pending async threads operations but not close
ports. And erlang:halt/1 with a non-zero integer argument
would not even wait for pending async threads operations.
</p>
<p> To roughly the old behaviour, to not wait for ports
and async threads operations when you exit the emulator,
you use erlang:halt/2 with an integer first argument and
an option list containing {flush,false} as the second
argument. Note that now is flushing not dependant of the
exit code, and you can not only flush async threads
operations which we deemed as a strange behaviour anyway.
</p>
<p>Also, erlang:halt/1,2 has gotten a new feature: If the
first argument is the atom 'abort' the emulator is
aborted producing a core dump, if the operating system so
allows. </p>
<p>
Own Id: OTP-9985</p>
</item>
<item>
<p>
Added check to inet driver to avoid building on operating
systems that do not yet have IPv6 compatible socket API.
(Thanks to Peer Stritzinger)</p>
<p>
Own Id: OTP-9996</p>
</item>
<item>
<p>
Fix bug when the number of CPUs actually found is lower
than the configured value. (Thanks to Benjamin
Herrenschmidt)</p>
<p>
Own Id: OTP-10004</p>
</item>
<item>
<p>
The runtime system without SMP support and without thread
support erroneously busy waited when no work was present.
This bug first appeared in <c>erts-5.9</c>.</p>
<p>
Own Id: OTP-10019</p>
</item>
<item>
<p>
Various typographical errors corrected in documentation
for common_test, driver, erl_driver and windows
installation instructions. (Thanks to Tuncer Ayaz)</p>
<p>
Own Id: OTP-10037</p>
</item>
<item>
<p>
Fix memory leak caused by race on exiting process</p>
<p>
Own Id: OTP-10041</p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p>Add <c>erlang:statistics(scheduler_wall_time)</c> to
ensure correct determination of scheduler utilization.
Measuring scheduler utilization is strongly preferred
over CPU utilization, since CPU utilization gives very
poor indications of actual scheduler/vm usage.</p>
<p>
Own Id: OTP-9858</p>
</item>
<item>
<p>
ERTS internal API improvements. In some cases the amount
of atomic read operations needed have been reduced due to
this.</p>
<p>
Own Id: OTP-9922</p>
</item>
<item>
<p>
The DTrace source patch from Scott Lystig Fritchie is
integrated in the source tree. Using an emulator with
dtrace probe is still not supported for production use,
but may be a valuable debugging tool. Configure with
--with-dynamic-trace=dtrace (or
--with-dynamic-trace=systemtap) to create a build with
dtrace probes enabled. See runtime_tools for
documentation and examples.</p>
<p>
Own Id: OTP-10017</p>
</item>
</list>
</section>
<section><title>Known Bugs and Problems</title>
<list>
<item>
<p>
enif_make_copy may invalidate enif_inspect_binary.</p>
<p>
Own Id: OTP-9828</p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.9.0.1</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
A feature test for the <c>lwsync</c> instruction
performed on PowerPC hardware at runtime system startup
got into an eternal loop if the instruction was not
supported. This bug was introduced in erts-5.9/OTP-R15B.</p>
<p>
Own Id: OTP-9843</p>
</item>
<item>
<p>
I/O events could potentially be delayed for ever when
enabling kernel-poll on a non-SMP runtime system
executing on Solaris. When also combined with
async-threads the runtime system hung before completing
the boot phase. This bug was introduced in
erts-5.9/OTP-R15B.</p>
<p>
Own Id: OTP-9844</p>
</item>
</list>
</section>
</section>
<section><title>Erts 5.9</title>
<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>
Honor option <c>packet_size</c> for http packet parsing
by both TCP socket and <c>erlang:decode_packet</c>. This
gives the ability to accept HTTP headers larger than the
default setting, but also avoid DoS attacks by accepting
lines only up to whatever length you wish to allow. For
consistency, packet type <c>line</c> also honor option
<c>packet_size</c>. (Thanks to Steve Vinoski)</p>
<p>
Own Id: OTP-9389</p>
</item>
<item>
<p> A few contracts in the <c>lists</c> module have been
corrected. </p>
<p>
Own Id: OTP-9616</p>
</item>
<item>
<p>
The Unicode noncharacter code points 16#FFFE and 16#FFFE
were not allowed to be encoded or decoded using the
<c>unicode</c> module or bit syntax. That was
inconsistent with the other noncharacters 16#FDD0 to
16#FDEF that could be encoded/decoded. To resolve the
inconsistency, 16#FFFE and 16#FFFE can now be encoded and
decoded. (Thanks to Alisdair Sullivan.)</p>
<p>
*** POTENTIAL INCOMPATIBILITY ***</p>
<p>
Own Id: OTP-9624</p>
</item>
<item>
<p>
Make epp search directory of current file first when
including another file This completes a partial fix in
R11 that only worked for include_lib(). (Thanks to
Richard Carlsson)</p>
<p>
Own Id: OTP-9645</p>
</item>
<item>
<p>
Fixed memory leak in
<c>enif_inspect_io_list_as_binary</c> when applied on a
process independent environment.</p>
<p>
Own Id: OTP-9668</p>
</item>
<item>
<p>The number of beam catches allowed in code are no
longer statically defined and will grow according to its
need.</p>
<p>
Own Id: OTP-9692</p>
</item>
<item>
<p>
Add missing parenthesis in heart doc.</p>
<p>
Add missing spaces in the Reference Manual distributed
section.</p>
<p>
In the HTML version of the doc those spaces are necessary
to separate those words.</p>
<p>
Own Id: OTP-9693</p>
</item>
<item>
<p>
Fixes module erlang doc style: option description (Thanks
to Ricardo Catalinas Jiménez)</p>
<p>
Own Id: OTP-9697</p>
</item>
<item>
<p>
Specifying a scope to binary:match/3 when using multiple
searchstrings resulted in faulty return values. This is
now corrected.</p>
<p>
Own Id: OTP-9701</p>
</item>
<item>
<p>
The runtime system crashed if more than one thread tried
to exit the runtime system at the same time.</p>
<p>
Own Id: OTP-9705</p>
</item>
<item>
<p>
Fix documentation for erlang:process_flag/2</p>
<p>
For the subsection about process_flag(save_calls, N)
there's an unrelated paragraph about process priorities
which was copied from the preceeding subsection regarding
process_flag(priority, Level). (Thanks to Filipe David
Manana)</p>
<p>
Own Id: OTP-9714</p>
</item>
<item>
<p>
Calls to <c>erlang:system_flag(schedulers_online, N)</c>
and/or <c>erlang:system_flag(multi_scheduling,
block|unblock)</c> could cause internal data used by this
functionality to get into an inconsistent state. When
this happened various problems occurred. This bug was
quite hard to trigger, so hopefully no-one has been
effected by it.</p>
<p>
A spinlock used by the run-queue management sometimes got
heavily contended. This code has now been rewritten, and
the spinlock has been removed.</p>
<p>
Own Id: OTP-9727</p>
</item>
<item>
<p>
Use libdlpi to get physical address (Thanks to Trond
Norbye)</p>
<p>
Own Id: OTP-9818</p>
</item>
</list>
</section>
<section><title>Improvements and New Features</title>
<list>
<item>
<p> An option list argument can now be passed to
<c>file:read_file_info/2, file:read_link_info/2</c> and
<c>file:write_file_info/3</c> and set time type
information in the call. Valid options are <c>{time,
local}, {time, universal}</c> and <c>{time, posix}</c>.
In the case of <c>posix</c> time no conversions are made
which makes the operation a bit faster. </p>
<p>
Own Id: OTP-7687</p>
</item>
<item>
<p>A number of memory allocation optimizations have been
implemented. Most optimizations reduce contention caused
by synchronization between threads during allocation and
deallocation of memory. Most notably:</p> <list> <item>
Synchronization of memory management in scheduler
specific allocator instances has been rewritten to use
lock-free synchronization. </item> <item> Synchronization
of memory management in scheduler specific pre-allocators
has been rewritten to use lock-free synchronization.
</item> <item> The 'mseg_alloc' memory segment allocator
now use scheduler specific instances instead of one
instance. Apart from reducing contention this also
ensures that memory allocators always create memory
segments on the local NUMA node on a NUMA system. </item>
</list>
<p>
Own Id: OTP-7775</p>
</item>
<item>
<p>
The ethread atomic memory operations API used by the
runtime system has been extended and improved.</p>
<p>
The ethread library now also performs runtime tests for
presence of hardware features, such as for example SSE2
instructions, instead of requiring this to be determined
at compile time.</p>
<p>
All uses of the old deprecated atomic API in the runtime
system have been replaced with the use of the new atomic
API. In a lot of places this change imply a relaxation of
memory barriers used.</p>
<p>
Own Id: OTP-9014</p>
</item>
<item>
<p>gen_sctp:open/0-2 may now return
{error,eprotonosupport} if SCTP is not supported</p>
<p>gen_sctp:peeloff/1 has been implemented and creates a
one-to-one socket which also are supported now</p>
<p>
*** POTENTIAL INCOMPATIBILITY ***</p>
<p>
Own Id: OTP-9239</p>
</item>
<item>
<p>
Sendfile has been added to the file module's API.
sendfile/2 is used to read data from a file and send it
to a tcp socket using a zero copying mechanism if
available on that OS.</p>
<p>
Thanks to Tuncer Ayaz and Steve Vinovski for original
implementation</p>
<p>
Own Id: OTP-9240</p>
</item>
<item>
<p>
enif_get_reverse_list function added to nif API. This
function should be used to reverse small lists which are
deep within other structures making it impractical to do
the reverse in Erlang.</p>
<p>
Own Id: OTP-9392</p>
</item>
<item>
<p>
The deprecated concat_binary/1 BIF has been removed. Use
<c>list_to_binary</c> or <c>iolist_to_binary/1</c>
instead.</p>
<p>
*** POTENTIAL INCOMPATIBILITY ***</p>
<p>
Own Id: OTP-9421</p>
</item>
<item>
<p>Erlang/OTP can now be built using parallel make if you
limit the number of jobs, for instance using '<c>make
-j6</c>' or '<c>make -j10</c>'. '<c>make -j</c>' does not
work at the moment because of some missing
dependencies.</p>
<p>
Own Id: OTP-9451</p>
</item>
<item>
<p>Line number and filename information are now included
in exception backtraces as a fourth element in the MFA
tuple. The information will be pretty-printed by the
shell and used by <c>common_test</c> to provide better
indication of where a test case.</p>
<p>
*** POTENTIAL INCOMPATIBILITY ***</p>
<p>
Own Id: OTP-9468</p>
</item>
<item>
<p>All binary constants used to be handled as heap
binaries (i.e. the entire binary would be copied when
sent to another process). Binary constants larger than 64
bytes are now refc binaries (i.e. the actual data in the
binary will not be copied when sent to another
process).</p>
<p>
Own Id: OTP-9486</p>
</item>
<item>
<p>
If a float and an integer is compared, the integer is
only converted to a float if the float datatype can
contain it. Otherwise the float is converted to an
integer.</p>
<p>
*** POTENTIAL INCOMPATIBILITY ***</p>
<p>
Own Id: OTP-9497</p>
</item>
<item>
<p>
Add NIF function enif_is_number</p>
<p>
This function allows for easily determining if a term
represents or not a number (integer, float, small or
big).(Thanks to Filipe David Manana)</p>
<p>
Own Id: OTP-9629</p>
</item>
<item>
<p>
The ERTS internal system block functionality has been
replaced by new functionality for blocking the system.
The old system block functionality had contention issues
and complexity issues. The new functionality piggy-backs
on thread progress tracking functionality needed by newly
introduced lock-free synchronization in the runtime
system. When the functionality for blocking the system
isn't used, there is more or less no overhead at all.
This since the functionality for tracking thread progress
is there and needed anyway.</p>
<p>
Own Id: OTP-9631</p>
</item>
<item>
<p>
An ERTS internal, generic, many to one, lock-free queue
for communication between threads has been introduced.
The many to one scenario is very common in ERTS, so it
can be used in a lot of places in the future. Currently
it is used by scheduling of certain jobs, and the async
thread pool, but more uses are planned for the future.</p>
<p>
Drivers using the driver_async functionality are not
automatically locked to the system anymore, and can be
unloaded as any dynamically linked in driver.</p>
<p>
Scheduling of ready async jobs is now also interleaved in
between other jobs. Previously all ready async jobs were
performed at once.</p>
<p>
Own Id: OTP-9632</p>
</item>
<item>
<p>