From f27202202b0b9180543a8114a97473a421f2eee7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 5 Sep 2008 06:15:54 +0000 Subject: [PATCH] Fixed profiler being initialized at the wrong time, causing a paired callback mismatch (bug amb1977). --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402489 --- sourcepawn/jit/BaseRuntime.cpp | 1 + sourcepawn/jit/x86/jit_x86.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sourcepawn/jit/BaseRuntime.cpp b/sourcepawn/jit/BaseRuntime.cpp index 53d37f1e..be6d9738 100644 --- a/sourcepawn/jit/BaseRuntime.cpp +++ b/sourcepawn/jit/BaseRuntime.cpp @@ -484,6 +484,7 @@ int BaseRuntime::ApplyCompilationOptions(ICompilation *co) } m_pCo = g_Jit.ApplyOptions(m_pCo, co); + m_pPlugin->prof_flags = ((CompData *)m_pCo)->profile; return SP_ERROR_NONE; } diff --git a/sourcepawn/jit/x86/jit_x86.cpp b/sourcepawn/jit/x86/jit_x86.cpp index 6c37d157..e8119e74 100644 --- a/sourcepawn/jit/x86/jit_x86.cpp +++ b/sourcepawn/jit/x86/jit_x86.cpp @@ -2716,8 +2716,6 @@ jit_rewind: } } - plugin->prof_flags = data->profile; - *err = SP_ERROR_NONE; JitFunction *fn;