From 8abd7a2bbfef51ca6dc8a3462c067e5d2c46200e Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 1 Jun 2016 13:35:28 -0700 Subject: 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 --- fpdfsdk/jsapi/fxjs_v8.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'fpdfsdk/jsapi/fxjs_v8.cpp') diff --git a/fpdfsdk/jsapi/fxjs_v8.cpp b/fpdfsdk/jsapi/fxjs_v8.cpp index a471d5613d..f8c2a3dd6d 100644 --- a/fpdfsdk/jsapi/fxjs_v8.cpp +++ b/fpdfsdk/jsapi/fxjs_v8.cpp @@ -312,9 +312,6 @@ void FXJS_InitializeRuntime( ++g_isolate_ref_count; v8::Isolate::Scope isolate_scope(pIsolate); -#ifdef PDF_ENABLE_XFA - v8::Locker locker(pIsolate); -#endif // PDF_ENABLE_XFA v8::HandleScope handle_scope(pIsolate); v8::Local v8Context = v8::Context::New(pIsolate, NULL, GetGlobalObjectTemplate(pIsolate)); @@ -363,9 +360,6 @@ void FXJS_ReleaseRuntime(v8::Isolate* pIsolate, v8::Global* pV8PersistentContext, std::vector*>* pStaticObjects) { v8::Isolate::Scope isolate_scope(pIsolate); -#ifdef PDF_ENABLE_XFA - v8::Locker locker(pIsolate); -#endif // PDF_ENABLE_XFA v8::HandleScope handle_scope(pIsolate); v8::Local context = v8::Local::New(pIsolate, *pV8PersistentContext); -- cgit v1.2.3