From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20556 invoked by alias); 10 Apr 2013 09:34:35 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 20547 invoked by uid 89); 10 Apr 2013 09:34:34 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_GC autolearn=ham version=3.3.1 Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com) (209.85.212.179) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 10 Apr 2013 09:34:34 +0000 Received: by mail-wi0-f179.google.com with SMTP id hn17so247882wib.0 for ; Wed, 10 Apr 2013 02:34:31 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.95.198 with SMTP id dm6mr2120982wjb.6.1365586471807; Wed, 10 Apr 2013 02:34:31 -0700 (PDT) Received: by 10.194.5.9 with HTTP; Wed, 10 Apr 2013 02:34:31 -0700 (PDT) In-Reply-To: <51645BD5.3090906@gmail.com> References: <51645BD5.3090906@gmail.com> Date: Wed, 10 Apr 2013 09:34:00 -0000 Message-ID: Subject: Re: Usage of _Jv_AttachCurrentThread, _Jv_AttachCurrentThreadAsDaemon, _Jv_DetachCurrentThread. From: Bryce McKinlay To: Dave Korn Cc: GCC Java Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-04/txt/msg00002.txt.bz2 On Tue, Apr 9, 2013 at 7:20 PM, Dave Korn wrote: > I could fix this by either adding a !defined(GC_WIN32_THREADS) in the same > way as Solaris disables these functions, or I could add an implementation of > the functions in boehm-gc for Cygwin, which is posixy and pthread-based. As Andrew said, these are used by the JNI (& CNI) "invocation API", which allows calling into Java code from a non-Java app. It might be worth checking if newer versions of the GC already have improvements here for Cygwin. libgcj's copy of boehm-gc is very old and we really ought to update it! > Also on the same topic, would there be any value added by providing Cygwin > implementations of GC_suspend_thread, GC_resume_thread and > GC_is_thread_suspended, which are called from _Jv_SuspendThread, > _JV_ResumeThread, _JV_IsThreadSuspended in boehm.cc and currently #if'd out by > a test on GC_WIN32_THREADS? Well, I don't think anything in libgcj really uses these. They might be useful as part of a debugging interface. Bryce