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

Unified Diff: src/marking-thread.cc

Issue 15691017: Make assertion scopes thread safe. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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: src/marking-thread.cc
diff --git a/src/marking-thread.cc b/src/marking-thread.cc
index ac6438126891ff0d26e7e021d12bdb43cf9bd817..574485abc7b1c7ae36c2cc04d1a2d2e663fa2921 100644
--- a/src/marking-thread.cc
+++ b/src/marking-thread.cc
@@ -52,6 +52,9 @@ Atomic32 MarkingThread::id_counter_ = -1;
void MarkingThread::Run() {
Isolate::SetIsolateThreadLocals(isolate_, NULL);
+ DisallowHeapAllocation no_allocation;
+ DisallowHandleAllocation no_handles;
+ DisallowHandleDereference no_deref;
while (true) {
start_marking_semaphore_->Wait();
« src/api.cc ('K') | « src/mark-compact.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698