Skip to content

Commit

Permalink
Merge branch 'john/erts/minusminus_trapping/OTP-15371' into maint
Browse files Browse the repository at this point in the history
* john/erts/minusminus_trapping/OTP-15371:
  Optimize operator '--' and yield on large inputs
  Inline erts_cmp
  Clarify a magical allocation size
  Fix trapping in lists:reverse/2
  • Loading branch information
jhogberg committed Nov 2, 2018
2 parents f9aa2fb + eb9ee88 commit 7999dda
Show file tree
Hide file tree
Showing 10 changed files with 852 additions and 221 deletions.
2 changes: 1 addition & 1 deletion erts/emulator/beam/atom.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ atom_alloc(Atom* tmpl)

/*
* Precompute ordinal value of first 3 bytes + 7 bits.
* This is used by utils.c:erts_cmp_atoms().
* This is used by erl_utils.h:erts_cmp_atoms().
* We cannot use the full 32 bits of the first 4 bytes,
* since we use the sign of the difference between two
* ordinal values to represent their relative order.
Expand Down
1 change: 1 addition & 0 deletions erts/emulator/beam/erl_alloc.types
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ type ML_YIELD_STATE SHORT_LIVED SYSTEM monitor_link_yield_state
type ML_DIST STANDARD SYSTEM monitor_link_dist
type PF3_ARGS SHORT_LIVED PROCESSES process_flag_3_arguments
type SETUP_CONN_ARG SHORT_LIVED PROCESSES setup_connection_argument
type LIST_TRAP SHORT_LIVED PROCESSES list_bif_trap_state

type ENVIRONMENT SYSTEM SYSTEM environment

Expand Down
Loading

0 comments on commit 7999dda

Please sign in to comment.