Open Bug 1932965 Opened 2 years ago Updated 2 years ago

Consider trying to make sure GCPtr is correctly initialized before ::init

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mgaudet, Unassigned)

References

(Blocks 1 open bug)

Details

HeapPtr::init asserts we're doing initialization.

GCPtr::init does not.

We probably should.

This is not as easy as one would like, as in some places we use use GCPtr as init on memory which doesn't conform to the assertion of

MOZ_ASSERT(this->value == JS::SafelyInitialized<T>::create());

Usually because this->value is actually some unintialized memory from an allocator.

See here for more commentary

See Also: → 1928852
You need to log in before you can comment on or make changes to this bug.