Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-01-21 | Optimize the is_function/2 guard test | Björn Gustavsson | |
The is_function2 instruction is executed surprisingly frequently when running dialyzer or the compiler. It cannot hurt to optimize it a little. | |||
2018-07-18 | Merge pull request #1812 from michalmuskala/mm/make-fun-loader | John Högberg | |
Optimise creation of anonymous functions | |||
2018-07-17 | Optimise creation of anonymous functions | Michał Muskała | |
This introduces a similar optimisation for normal funs to what was introduced for external funs in #1725. It is possible to allocate the fun as a literal, if it does not capture the environment (i.e. it does not close over any variables). Unfortunately it's not possible to do this in the compiler due to problems with representation of such functions in the `.beam` files. Fortunately, we can do this in the loader. Simple evaluation shows that functions that don't capture the enviornment consistute over 60% of all funs in the source code of Erlang/OTP itself. The only downside is that we lose a meningful value in the `pid` field of the fun. The goal of this field, beyond debugging, was to be able to identify the original node of a function. To be able to still do this, the functions that are created in the loader are assigned the init pid as the creator. To solve issues with staryp, initially set the `erts_init_process_id` to `ERTS_INVALID_PID` and skip the described optimisation if the value is still uninitialised. | |||
2018-06-18 | Update copyright year | Henrik Nord | |
2017-06-27 | erts: Make apply throw 'badarg' if Args is not a list | Sverker Eriksson | |
instead of a strange 'undef' exception. | |||
2017-01-25 | Update test cases for erlang:hash/2 removal | Björn-Egil Dahlberg | |
2016-03-15 | update copyright-year | Henrik Nord | |
2016-03-11 | Remove ?line macros | Björn-Egil Dahlberg | |
2016-03-11 | Eliminate use of doc and suite clauses | Björn-Egil Dahlberg | |
Those clause are obsolete and never used by common_test. | |||
2016-03-11 | Eliminate use of ?config() macro | Björn-Egil Dahlberg | |
2016-03-11 | Eliminate use of test_server:fail/0,1 | Björn-Egil Dahlberg | |
2016-03-11 | Modernize use of timetraps | Björn-Egil Dahlberg | |
2016-02-17 | Eliminate use of test_server.hrl and test_server_line.hrl | Björn Gustavsson | |
As a first step to removing the test_server application as as its own separate application, change the inclusion of test_server.hrl to an inclusion of ct.hrl and remove the inclusion of test_server_line.hrl. | |||
2015-06-18 | Change license text to APLv2 | Bruce Yinhe | |
2014-07-11 | erts: Test erlang:fun_info_mfa/1 | Björn-Egil Dahlberg | |
2013-12-12 | Test named funs | Anthony Ramine | |
2012-12-01 | Teach is_function/2 that tuples are not funs | Björn Gustavsson | |
2012-08-31 | Update copyright years | Björn-Egil Dahlberg | |
2012-05-10 | Remove workarounds for hybrid and shared heaps in test suites | Björn Gustavsson | |
2011-07-26 | Fix test case fun_SUITE:refc_dist | Sverker Eriksson | |
It failed sometimes depending on GC invocation. | |||
2011-03-11 | Update copyright years | Björn-Egil Dahlberg | |
2011-02-17 | Rename Suite Callback to Common Test Hook | Lukas Larsson | |
2011-02-17 | Fix formatting for emulator | Lukas Larsson | |
2011-02-17 | Add init_per_suite and end_per_suite | Lukas Larsson | |
2011-02-17 | Add ts_install_scb to suite/0 | Lukas Larsson | |
2011-02-17 | Update emulator tests to conform with common_test standard | Lukas Larsson | |
2010-01-13 | OTP-8240 Improved GC performance after BIF/NIF call when a lot of heap | Sverker Eriksson | |
fragments was created. This will mainly benefit NIFs that return large compound terms. | |||
2009-11-20 | The R13B03 release.OTP_R13B03 | Erlang/OTP | |