Age | Commit message (Collapse) | Author |
|
A race condition in erts_poll() could cause
delay of poll for I/O.
|
|
* rickard/fix-faulty-assert/OTP-8759:
Fix faulty no_empty_run_queues assertion
|
|
* dgud/wx/callback-crash/OTP-8766:
Callback crash reported by Sergei Golovan.
|
|
* hb/type_reference/OTP-8733:
reference() substituted for ref() in docs
|
|
* mp/fix-hipe_bifs_alloc_data:
fix hipe_bifs_alloc_data_2 to avoid "Yikes!" warning
OTP-8769
|
|
May also be the reason of the crash seen on windows by several others.
|
|
* dgud/wx/system_settings:
Implemented wxSystemSettings class.
|
|
It's been reported that HiPE-enabled Erlang VMs running on BSD
systems sometimes generate messages like
Yikes! erts_alloc() returned misaligned address 0x8016a512c
These originate from hipe_bif0.c:hipe_bifs_alloc_data_2().
A native code module has an associated data area of some
size and alignment. In the case where the size is zero,
the alignment is irrelevant, but the allocation BIF checks
it anyway. The warning then triggers on systems where
malloc(0) returns blocks with less alignment than we
(erroneously) expected.
The fix is to simply skip the allocation in this case and
return NULL. The loader won't actually use the address in
this case so that's safe. This is also an optimization since
it avoids allocating memory that cannot be used, and it avoids
fragmenting the system heap with useless tiny blocks.
A second problem is that the warning message failed to
identify its origin. Fixed by prefixing the message by
the BIF's name rather than the silly Yikes! string.
Tested and confirmed to solve the original reporter's problem.
|
|
* bjorn/remove-obsolete-driver-support/OTP-8758:
Remove obsolete/driver.h and the associated functionality
|
|
For a short period of time no_empty_run_queues may have
been increased twice for a specific run queue. Two
assertions did not take this into account.
|
|
The obsolete/driver.h header file has been obsolete
since R8B.
Remove that file, along with obsolete thread APIs for
drivers in the emulator and the test cases.
|
|
* bjorn/remove-clearcase-support:
Top-level Makefile: Remove clearmake support
otp_build: Remove clearmake support
otp_build: Remove Clearcase support for primary bootstrap and preloaded files
ts: Eliminate Clearcase references in comments
ts: Remove Clearcase detection
|
|
* rickard/bootstrap_setup/OTP-8756:
Regenerate bootstrap/{erl,erlc} when switching target
|
|
* rickard/trailing-data-alignment/OTP-8754:
Align trailing message data for all types of structures
|
|
* rickard/ethread-rewrite/OTP-8544:
Rewrite ethread library
|
|
Large parts of the ethread library have been rewritten. The
ethread library is an Erlang runtime system internal, portable
thread library used by the runtime system itself.
Most notable improvement is a reader optimized rwlock
implementation which dramatically improve the performance of
read-lock/read-unlock operations on multi processor systems by
avoiding ping-ponging of the rwlock cache lines. The reader
optimized rwlock implementation is used by miscellaneous
rwlocks in the runtime system that are known to be read-locked
frequently, and can be enabled on ETS tables by passing the
`{read_concurrency, true}' option upon table creation. See the
documentation of `ets:new/2' for more information.
The ethread library can now also use the libatomic_ops library
for atomic memory accesses. This makes it possible for the
Erlang runtime system to utilize optimized atomic operations
on more platforms than before. Use the
`--with-libatomic_ops=PATH' configure command line argument
when specifying where the libatomic_ops installation is
located. The libatomic_ops library can be downloaded from:
http://www.hpl.hp.com/research/linux/atomic_ops/
The changed API of the ethread library has also caused
modifications in the Erlang runtime system. Preparations for
the to come "delayed deallocation" feature has also been done
since it depends on the ethread library.
Note: When building for x86, the ethread library will now use
instructions that first appeared on the pentium 4 processor. If
you want the runtime system to be compatible with older
processors (back to 486) you need to pass the
`--enable-ethread-pre-pentium4-compatibility' configure command
line argument when configuring the system.
|
|
|
|
Alignment of trailing data in messages has been adjusted.
This in order to be able to pass data of any type as
trailing data in the future.
|
|
|
|
|
|
|
|
|
|
ts_lib:erlang_type/0 used to dectect whether the system was
run in Clearcase, in an uninstalled source tree or in an
installed system.
There now only remain two cases: running in a source
tree/git repository or in an installed system. Update
ts_lib:erlang_type/0 and all callers accordingly.
|
|
|
|
If the versions of kernel or stdlib have changed, attempting
to update the primary bootstrap (using "./otp_build update_primary")
will fail during the rebuild of the start scripts.
The problem is that the app files in bootstrap/lib/*/ebin/*.app
will not be refreshed if they exist, because of missing dependencies.
Ultimately the dependencies should be fixed, but since there
already is a bootstrap_clean target to work around missing
dependencies, fix bootstrap_clean to also remove
bootstrap/lib/*/ebin/*.app.
|
|
|
|
|
|
When building with "--as-needed" linker flags on Linux the build will
fail. This has now been fixed.
|
|
OTP-8751
|
|
|
|
|
|
OTP-8750
|
|
The code for generating the string table (which is now
only used for bit syntax matching) in a BEAM file is quite
complicated and potentially expensive when compiling modules
with many thousands of clauses doing bit syntax matching.
Simplify and optimize the code using bit syntax and
binary:match/2 instead of the list operations in the
original code.
|
|
When configuring erlang with --enable-native-libs, some core modules are
compiled with hipe, yet because they are loaded before the code server,
their native code is not loaded. The fix consists in quietly trying to
load the native code for all loaded modules just after the code server
is started.
|
|
* egil/fix-edoc-deprecations/OTP-8749:
Fix deprecated references to http:request/4 in edoc
|
|
* egil/clean-inviso-warnings/OTP-8747:
Update guards to the modern interface
|
|
* egil/clean-erl_interface-warnings/OTP-8748:
Fix compiler warnings in erl_interface
|
|
- Removed unused variable in ei_decode_term.c
- Fixed faulty deallocation
|
|
|
|
|
|
|
|
|
|
|
|
Fix typos and other errors.
|
|
|
|
* sverker/halfword-heap-fixes/OTP-8745:
Mending halfword heap emulator
|
|
|
|
* sverker/one_offheap_list/OTP-8737:
One off-heap list, to eliminate two words per ETS object.
|
|
Merging the three off-heap lists (binaries, funs and externals) into
one list. This reduces memory consumption by two words (pointers) per
ETS object.
|
|
* sverker/ets_select_hang/OTP-8732:
Fix ets:select hanging on ordered_set with empty list as key.
|