summaryrefslogtreecommitdiff
path: root/xfa/fxjse/runtime.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-06-01 13:35:28 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-01 13:35:28 -0700
commit8abd7a2bbfef51ca6dc8a3462c067e5d2c46200e (patch)
treebe8c84b695efe5e653d881a6f3194df981e76edb /xfa/fxjse/runtime.cpp
parentf6be145f54bf44810974e43e9554c756c9730bb6 (diff)
downloadpdfium-8abd7a2bbfef51ca6dc8a3462c067e5d2c46200e.tar.xz
Remove use of v8:Lockers
The entire code base is single-threaded, hence the lockers ought not be required. Review-Url: https://codereview.chromium.org/2026933002
Diffstat (limited to 'xfa/fxjse/runtime.cpp')
-rw-r--r--xfa/fxjse/runtime.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/xfa/fxjse/runtime.cpp b/xfa/fxjse/runtime.cpp
index 64d685bd5f..70d90c44fa 100644
--- a/xfa/fxjse/runtime.cpp
+++ b/xfa/fxjse/runtime.cpp
@@ -36,12 +36,9 @@ void FXJSE_Initialize() {
}
static void FXJSE_Runtime_DisposeCallback(v8::Isolate* pIsolate) {
- {
- v8::Locker locker(pIsolate);
- if (FXJS_PerIsolateData* pData = FXJS_PerIsolateData::Get(pIsolate)) {
- delete pData->m_pFXJSERuntimeData;
- pData->m_pFXJSERuntimeData = nullptr;
- }
+ if (FXJS_PerIsolateData* pData = FXJS_PerIsolateData::Get(pIsolate)) {
+ delete pData->m_pFXJSERuntimeData;
+ pData->m_pFXJSERuntimeData = nullptr;
}
pIsolate->Dispose();
}