Project

General

Profile

Actions

Misc #14854

closed

mjit (2.6.0-preview2) enabled on cygwin

Added by fd0 (Daisuke Fujimura) over 6 years ago. Updated over 6 years ago.


Description

cygwin で 2.6.0-preview2 の mjit をとりあえずで動かせるようにしてみました。
(コンパイルできるだけのレベル)

patch & log
https://gist.github.com/fd00/80b25c33ffef0651b7214d19e722848f

cygwin だと必ず false になるという都合で
pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM) == 0 を
コメントアウトしてますが、この関数が必須なら cygwin で mjit は
動かさない方が良いということだと思います。

Updated by hsbt (Hiroshi SHIBATA) over 6 years ago

  • Status changed from Open to Assigned
  • Assignee set to k0kubun (Takashi Kokubun)
Actions #2

Updated by k0kubun (Takashi Kokubun) over 6 years ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r63730.


mjit.c: initial cygwin support

thread_pthread.c: Drop pthread_attr_setscope usage. It seems that,
at least on Linux and macOS, PTHREAD_SCOPE_PROCESS is not supported
and thus PTHREAD_SCOPE_SYSTEM should be used by default.

Let's just stop calling this until we find some platform that needs
pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM).

[Misc #14854]

From: fd0 (Daisuke Fujimura)

Actions

Also available in: Atom PDF

Like0
Like0Like0