Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 8, 2023

No description provided.

@sbc100 sbc100 changed the title [WIP] [wasm64] Fix emmalloc+verbose under wasm64 [wasm64] Fix emmalloc+verbose under wasm64 Nov 10, 2023
@sbc100 sbc100 force-pushed the wasm64_emmalloc branch 3 times, most recently from 5f657d9 to beaeb9c Compare November 10, 2023 21:06
@sbc100 sbc100 requested review from dschuff and kripken November 10, 2023 21:06
@sbc100
Copy link
Collaborator Author

sbc100 commented Nov 10, 2023

We have some single byte code size wins and some single byte code size losses elsewhere that I think are the just the result of the optimizers seeing slightly different things at different times, but none are significant.

@sbc100 sbc100 force-pushed the wasm64_emmalloc branch 4 times, most recently from e03b6f2 to 634aa89 Compare November 13, 2023 17:41
@sbc100 sbc100 merged commit 04a0cad into emscripten-core:main Nov 13, 2023
@sbc100 sbc100 deleted the wasm64_emmalloc branch November 13, 2023 23:44
kripken added a commit that referenced this pull request Nov 22, 2023
Take the alignment into account when requesting new memory from the OS. If the
alignment is high then we need to ask for enough to ensure we end up aligned, or
else we can end up allocating double the memory we need (see #20645).

This only changes the amount we allocate from the OS if the alignment is non-
standard, that is, this is NFC for normal calls to malloc.

Also remove an assertion that limited the maximum alignment. mimalloc wants
4 MB alignment.

Fixes #20654
br0nk pushed a commit to br0nk/emscripten that referenced this pull request Nov 29, 2023
Take the alignment into account when requesting new memory from the OS. If the
alignment is high then we need to ask for enough to ensure we end up aligned, or
else we can end up allocating double the memory we need (see emscripten-core#20645).

This only changes the amount we allocate from the OS if the alignment is non-
standard, that is, this is NFC for normal calls to malloc.

Also remove an assertion that limited the maximum alignment. mimalloc wants
4 MB alignment.

Fixes emscripten-core#20654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants