mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
Revert "Android: Attach CPU thread to JVM early"
This reverts commite86d713600
. A proper fix was added in86c1f6e1e7
, so the workaround is no longer necessary.
This commit is contained in:
@ -96,10 +96,6 @@
|
|||||||
#include "VideoCommon/VideoBackendBase.h"
|
#include "VideoCommon/VideoBackendBase.h"
|
||||||
#include "VideoCommon/VideoEvents.h"
|
#include "VideoCommon/VideoEvents.h"
|
||||||
|
|
||||||
#ifdef ANDROID
|
|
||||||
#include "jni/AndroidCommon/IDCache.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Core
|
namespace Core
|
||||||
{
|
{
|
||||||
static bool s_wants_determinism;
|
static bool s_wants_determinism;
|
||||||
@ -388,12 +384,6 @@ static void CpuThread(Core::System& system, const std::optional<std::string>& sa
|
|||||||
// Clear performance data collected from previous threads.
|
// Clear performance data collected from previous threads.
|
||||||
g_perf_metrics.Reset();
|
g_perf_metrics.Reset();
|
||||||
|
|
||||||
#ifdef ANDROID
|
|
||||||
// For some reason, calling the JNI function AttachCurrentThread from the CPU thread after a
|
|
||||||
// certain point causes a crash if fastmem is enabled. Let's call it early to avoid that problem.
|
|
||||||
static_cast<void>(IDCache::GetEnvForThread());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// The JIT need to be able to intercept faults, both for fastmem and for the BLR optimization.
|
// The JIT need to be able to intercept faults, both for fastmem and for the BLR optimization.
|
||||||
const bool exception_handler = EMM::IsExceptionHandlerSupported();
|
const bool exception_handler = EMM::IsExceptionHandlerSupported();
|
||||||
if (exception_handler)
|
if (exception_handler)
|
||||||
|
Reference in New Issue
Block a user