Project

General

Profile

Actions

Bug #17008

closed

JIT enabled on Windows can cause constant conhost pop-ups

Added by AWiederin (Aubrey Wiederin) over 3 years ago. Updated over 3 years ago.

Status:
Feedback
Target version:
-
[ruby-core:99046]

Description

I'm unsure of the min requirements for it to happen, but at least for ruby embedded in a gui mingw32 application, enabling JIT causes a conhost.exe popup for every gcc call, repeatedly stealing focus.
The easy fix is to add the CREATE_NO_WINDOW flag to CreateChild calls in win32.c, line 1326 in particular.

(Only somewhat related: It'd probably help performance if a single conhost could be shared among gcc calls, instead of letting Windows make a new one for each.)

Updated by k0kubun (Takashi Kokubun) over 3 years ago

  • Status changed from Open to Feedback
  • Assignee set to k0kubun (Takashi Kokubun)

I have my own MinGW environment, but I've never observed such a behavior. Could you provide at least one way to reproduce the issue? I don't know of any GUI mingw32 application embedding Ruby 2.6+.

Updated by AWiederin (Aubrey Wiederin) over 3 years ago

k0kubun (Takashi Kokubun) wrote in #note-1:

I have my own MinGW environment, but I've never observed such a behavior. Could you provide at least one way to reproduce the issue? I don't know of any GUI mingw32 application embedding Ruby 2.6+.

With some personal edits, https://github.com/Ancurio/mkxp.

Actions

Also available in: Atom PDF

Like0
Like0Like0