Commit 672b8e8
committed
erts: Report the effective atom_limit
erts_index_init() grows its table one INDEX_PAGE_SIZE page at a time and
only checks the limit when allocating a new page, so the effective limit
is the requested value rounded up to a whole number of pages. Store that
rounded value in t->limit so that erlang:system_info(atom_limit) reports
the limit actually enforced, like process_limit and port_limit do, rather
than echoing back the raw +t value.1 parent 3511f2a commit 672b8e8
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
67 | | - | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
542 | 543 | | |
543 | 544 | | |
544 | | - | |
| 545 | + | |
| 546 | + | |
545 | 547 | | |
546 | 548 | | |
547 | 549 | | |
| |||
0 commit comments