Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/misc.c b/misc.c
index f312352b..54ff79fb 100644
--- a/misc.c
+++ b/misc.c
@@ -812,9 +812,8 @@ GC_API int GC_CALL GC_is_init_called(void)
}
#endif
-#if defined(MSWIN32) && !defined(MSWINRT_FLAVOR) && (!defined(SMALL_CONFIG) \
- || (!defined(_WIN64) && defined(GC_WIN32_THREADS) \
- && defined(CHECK_NOT_WOW64))) && !defined(_XBOX_ONE)
+#if defined(MSWIN32) && !defined(MSWINRT_FLAVOR) && !defined(MSWIN_XBOX1) \
+ && !defined(SMALL_CONFIG)
STATIC void GC_win32_MessageBoxA(const char *msg, const char *caption,
unsigned flags)
{
@@ -902,30 +901,6 @@ GC_API void GC_CALL GC_init(void)
initial_heap_sz = MINHINCR * HBLKSIZE;
# endif
-# if defined(MSWIN32) && !defined(_WIN64) && defined(GC_WIN32_THREADS) \
- && defined(CHECK_NOT_WOW64) && !defined(_XBOX_ONE)
- {
- /* Windows: running 32-bit GC on 64-bit system is broken! */
- /* WoW64 bug affects SuspendThread, no workaround exists. */
- HMODULE hK32 = GetModuleHandle(TEXT("kernel32.dll"));
- if (hK32) {
- FARPROC pfn = GetProcAddress(hK32, "IsWow64Process");
- BOOL bIsWow64 = FALSE;
- if (pfn
- && (*(BOOL (WINAPI*)(HANDLE, BOOL*))pfn)(GetCurrentProcess(),
- &bIsWow64)
- && bIsWow64) {
- GC_win32_MessageBoxA("This program uses BDWGC garbage collector"
- " compiled for 32-bit but running on 64-bit Windows.\n"
- "This is known to be broken due to a design flaw"
- " in Windows itself! Expect erratic behavior...",
- "32-bit program running on 64-bit system",
- MB_ICONWARNING | MB_OK);
- }
- }
- }
-# endif
-
DISABLE_CANCEL(cancel_state);
/* Note that although we are nominally called with the */
/* allocation lock held, the allocation lock is now */