/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
if (js::CreateHelperThreadsState()) { if (js::EnsureHelperThreadsInitialized()) {
MARK_STAR;
} else {
MARK_PLUS;
}
} else {
MARK_DOT;
}
// Reset the helper threads to ensure they get re-initalised in following // iterations
js::DestroyHelperThreadsState();
END_OOM_TEST;
returntrue;
}
bool init() override {
JSAPIRuntimeTest::uninit(); // Discard the just-created JSContext.
js::DestroyHelperThreadsState(); // The test creates this state. returntrue;
} void uninit() override { // Leave things initialized after this test finishes.
js::CreateHelperThreadsState();
}
END_TEST(testHelperThreadOOM)
#endif
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.