mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 747066 - Add vtable assertion (r=bz)
--HG-- extra : rebase_source : e989536ee950152925c353c26ead9a56adea2baa
This commit is contained in:
parent
fd0b4af925
commit
09086dd412
@ -85,6 +85,10 @@ JSCompartment::JSCompartment(JSRuntime *rt)
|
||||
, ionCompartment_(NULL)
|
||||
#endif
|
||||
{
|
||||
/* Ensure that there are no vtables to mess us up here. */
|
||||
JS_ASSERT(reinterpret_cast<JS::shadow::Compartment *>(this) ==
|
||||
static_cast<JS::shadow::Compartment *>(this));
|
||||
|
||||
setGCMaxMallocBytes(rt->gcMaxMallocBytes * 0.9);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user