From 9e06afcce20b53ebd25115453628a1455def6560 Mon Sep 17 00:00:00 2001 From: mjs Date: Wed, 22 May 2002 07:09:04 +0000 Subject: [PATCH] Fixed Radar 2928775 - Sherlock crashes sitting in stocks channel * kjs/internal.cpp: (InterpreterImp::InterpreterImp): Set the interp pointer earlier, in case garbage collection takes place while creating the global values. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@1192 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- JavaScriptCore/ChangeLog | 9 +++++++++ JavaScriptCore/ChangeLog-2002-12-03 | 9 +++++++++ JavaScriptCore/ChangeLog-2003-10-25 | 9 +++++++++ JavaScriptCore/kjs/internal.cpp | 3 +++ 4 files changed, 30 insertions(+) diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog index 80c06dd188e5..75f4de2a351a 100644 --- a/JavaScriptCore/ChangeLog +++ b/JavaScriptCore/ChangeLog @@ -1,3 +1,12 @@ +2002-05-21 Maciej Stachowiak + + Fixed Radar 2928775 - Sherlock crashes sitting in stocks channel + + * kjs/internal.cpp: + (InterpreterImp::InterpreterImp): Set the interp pointer earlier, + in case garbage collection takes place while creating the global + values. + 2002-05-15 Darin Adler * Makefile.am: diff --git a/JavaScriptCore/ChangeLog-2002-12-03 b/JavaScriptCore/ChangeLog-2002-12-03 index 80c06dd188e5..75f4de2a351a 100644 --- a/JavaScriptCore/ChangeLog-2002-12-03 +++ b/JavaScriptCore/ChangeLog-2002-12-03 @@ -1,3 +1,12 @@ +2002-05-21 Maciej Stachowiak + + Fixed Radar 2928775 - Sherlock crashes sitting in stocks channel + + * kjs/internal.cpp: + (InterpreterImp::InterpreterImp): Set the interp pointer earlier, + in case garbage collection takes place while creating the global + values. + 2002-05-15 Darin Adler * Makefile.am: diff --git a/JavaScriptCore/ChangeLog-2003-10-25 b/JavaScriptCore/ChangeLog-2003-10-25 index 80c06dd188e5..75f4de2a351a 100644 --- a/JavaScriptCore/ChangeLog-2003-10-25 +++ b/JavaScriptCore/ChangeLog-2003-10-25 @@ -1,3 +1,12 @@ +2002-05-21 Maciej Stachowiak + + Fixed Radar 2928775 - Sherlock crashes sitting in stocks channel + + * kjs/internal.cpp: + (InterpreterImp::InterpreterImp): Set the interp pointer earlier, + in case garbage collection takes place while creating the global + values. + 2002-05-15 Darin Adler * Makefile.am: diff --git a/JavaScriptCore/kjs/internal.cpp b/JavaScriptCore/kjs/internal.cpp index 217a61784905..9ee98b7ff5aa 100644 --- a/JavaScriptCore/kjs/internal.cpp +++ b/JavaScriptCore/kjs/internal.cpp @@ -778,6 +778,7 @@ InterpreterImp::InterpreterImp(Interpreter *interp, const Object &glob) // as a root set for garbage collection #ifdef APPLE_CHANGES Collector::lock(); + m_interpreter = interp; #endif if (s_hook) { prev = s_hook; @@ -793,7 +794,9 @@ InterpreterImp::InterpreterImp(Interpreter *interp, const Object &glob) Collector::unlock(); #endif +#ifndef APPLE_CHANGES m_interpreter = interp; +#endif global = glob; globExec = new ExecState(m_interpreter,0); dbg = 0; -- 2.36.0