зеркало из https://github.com/mozilla/pjs.git
Bug 747870 - Properly align XPCLazyCallContext::mData. r=bholley
This commit is contained in:
Родитель
0f59bb65bb
Коммит
ae37a8da89
|
@ -1310,8 +1310,9 @@ public:
|
|||
XPCCallContext &GetXPCCallContext()
|
||||
{
|
||||
if (!mCcx) {
|
||||
XPCCallContext *data = mData.addr();
|
||||
mCcxToDestroy = mCcx =
|
||||
new (mData) XPCCallContext(mCallerLanguage, mCx,
|
||||
new (data) XPCCallContext(mCallerLanguage, mCx,
|
||||
mCallBeginRequest == CALL_BEGINREQUEST,
|
||||
mObj,
|
||||
mFlattenedJSObject, mWrapper,
|
||||
|
@ -1343,7 +1344,7 @@ private:
|
|||
JSObject *mFlattenedJSObject;
|
||||
XPCWrappedNative *mWrapper;
|
||||
XPCWrappedNativeTearOff *mTearOff;
|
||||
char mData[sizeof(XPCCallContext)];
|
||||
mozilla::AlignedStorage2<XPCCallContext> mData;
|
||||
};
|
||||
|
||||
/***************************************************************************
|
||||
|
|
Загрузка…
Ссылка в новой задаче