Bug 1734334 - Use correct pointer type to store address of barrier flag r=lth

Differential Revision: https://phabricator.services.mozilla.com/D127621
This commit is contained in:
Jon Coppeard 2021-10-06 09:35:43 +00:00
parent d6098a8b00
commit c5dbbe6a94
2 changed files with 2 additions and 2 deletions

View File

@ -1288,7 +1288,7 @@ bool Instance::init(JSContext* cx, const JSFunctionVector& funcImports,
tlsData()->resetInterrupt(cx);
tlsData()->jumpTable = code_->tieringJumpTable();
tlsData()->addressOfNeedsIncrementalBarrier =
(uint8_t*)cx->compartment()->zone()->addressOfNeedsIncrementalBarrier();
cx->compartment()->zone()->addressOfNeedsIncrementalBarrier();
// Initialize function imports in the tls data
Tier callerTier = code_->bestTier();

View File

@ -87,7 +87,7 @@ struct TlsData {
// Set to 1 when wasm should call CheckForInterrupt.
Atomic<uint32_t, mozilla::Relaxed> interrupt;
uint8_t* addressOfNeedsIncrementalBarrier;
const uint32_t* addressOfNeedsIncrementalBarrier;
// Methods to set, test and clear the above two fields. Both interrupt
// fields are Relaxed and so no consistency/ordering can be assumed.