From 9b3af26cbe066e80d9bc591ca9efd7bede750c49 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 6 Mar 2009 13:44:38 -0500 Subject: [PATCH] Comment --- shell/ShellUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/ShellUtils.cpp b/shell/ShellUtils.cpp index 5c2319b32a7..8896ac96fef 100644 --- a/shell/ShellUtils.cpp +++ b/shell/ShellUtils.cpp @@ -270,6 +270,8 @@ private: JSThread( JSThreadConfig &config ) : config_( config ) {} void operator()() { Locker l; + // Context scope and handle scope held in thread specific storage, + // so need to configure for each thread. Context::Scope context_scope( baseContext_ ); HandleScope handle_scope; boost::scoped_array< Persistent< Value > > argv( new Persistent< Value >[ config_.args_.size() ] );