Closed
Bug 1403914
Opened 5 years ago
Closed 5 years ago
WASM_HUGE_MEMORY is defined after its first use
Categories
(Core :: JavaScript Engine: JIT, defect, P1)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: lth, Assigned: lth)
Details
Attachments
(1 file)
1.93 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
WASM_HUGE_MEMORY is defined in WasmTypes.h but only after there's an #ifdef (actually an #ifndef) that depends on it: it guards TlsData::boundsCheckLimit. This has probably been benign so far because no code breaks if I move the definition to the top of WasmTypes.h, but I tripped over this when trying to implement explicit bounds checking for atomics on x64, all my tests were failing because this field is zero on this platform, while it really should not have been available at all. Config options like these that affect many files probably should not be in individual headers if it can be helped, but should instead be set up in eg moz.build.
Assignee | ||
Comment 1•5 years ago
|
||
Move the definition to moz.build and add a sanity check in WasmTypes.cpp to check that the configuration is what we expect.
Attachment #8913201 -
Flags: review?(luke)
![]() |
||
Comment 2•5 years ago
|
||
Comment on attachment 8913201 [details] [diff] [review] bug1403914-define-wasm-huge-memory.patch Review of attachment 8913201 [details] [diff] [review]: ----------------------------------------------------------------- Oof good one, and *much* better fix.
Attachment #8913201 -
Flags: review?(luke) → review+
Pushed by lhansen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/67f7280bb9ff define WASM_HUGE_MEMORY so it's visible to all. r=luke
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/67f7280bb9ff
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•