Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2485)

Unified Diff: Source/modules/webdatabase/sqlite/SQLiteFileSystem.cpp

Issue 332393002: [oilpan]: Add SafePointAwareMutexLocker to allow GC when waiting for lock. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review feedback Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/webdatabase/sqlite/SQLiteFileSystem.cpp
diff --git a/Source/modules/webdatabase/sqlite/SQLiteFileSystem.cpp b/Source/modules/webdatabase/sqlite/SQLiteFileSystem.cpp
index 9c13abbf0103334a97b0c552e4bca9fbc13c9c20..0cad590172834343319cf3d25ef582e2ba2e0ba7 100644
--- a/Source/modules/webdatabase/sqlite/SQLiteFileSystem.cpp
+++ b/Source/modules/webdatabase/sqlite/SQLiteFileSystem.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "modules/webdatabase/sqlite/SQLiteFileSystem.h"
+#include "platform/heap/Handle.h"
#include <sqlite3.h>
#include "wtf/text/CString.h"
@@ -44,6 +45,7 @@ SQLiteFileSystem::SQLiteFileSystem()
int SQLiteFileSystem::openDatabase(const String& filename, sqlite3** database, bool forWebSQLDatabase)
{
+ ThreadState::SafePointScope scope(ThreadState::HeapPointersOnStack);
if (!forWebSQLDatabase)
return sqlite3_open(filename.utf8().data(), database);
« no previous file with comments | « Source/modules/webdatabase/DatabaseBackendBase.cpp ('k') | Source/modules/webdatabase/sqlite/SQLiteStatement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698