Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 9741 invoked from network); 7 Dec 2007 13:51:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2007 13:51:06 -0000 Received: (qmail 65003 invoked by uid 500); 7 Dec 2007 13:50:55 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 64477 invoked by uid 500); 7 Dec 2007 13:50:54 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 64468 invoked by uid 99); 7 Dec 2007 13:50:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 05:50:54 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gshimansky@gmail.com designates 64.233.184.227 as permitted sender) Received: from [64.233.184.227] (HELO wr-out-0506.google.com) (64.233.184.227) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 13:50:32 +0000 Received: by wr-out-0506.google.com with SMTP id c8so689200wra for ; Fri, 07 Dec 2007 05:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=tvEWrg+qAC+11BMixqwJf7j+v39R17Lx4v21X8uiMR8=; b=NrKQyHZ6QfKdGjpK5yynloZevnDB4kjJzuf9pOy9B4Y0CSJ6xwXyVIrozi6URDTsTCZj+lwlMymoCsB1/o3c5IbS/l/qmvjr7GuB/x4ZMFRgwJbFXTqHQEzl2ZYyKLHpfeQTba616BaQ6NySbmOWFtvZzJT78qtLj9KR2wLLJ+w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=DQv66qdDTx7wlWq1jIDV3hSZFnNk9OCwbjUrG/jcEBGE0gc+Tt3MtxZNXtvmcwBxZ/5r7AO/2anEfXc6jhpVRJuijrH58FdIk3tvQbOZURzKhTV5tMksQsgIGMepegqPnl20EyUno2ag4imdrrYWjVE20o+bO2EzNm7KTzOHKYU= Received: by 10.70.21.10 with SMTP id 10mr2909912wxu.1197035434528; Fri, 07 Dec 2007 05:50:34 -0800 (PST) Received: from ?127.0.0.1? ( [140.211.11.9]) by mx.google.com with ESMTPS id h13sm1124383wxd.2007.12.07.05.50.31 (version=SSLv3 cipher=RC4-MD5); Fri, 07 Dec 2007 05:50:33 -0800 (PST) Message-ID: <47594F9B.5010106@apache.org> Date: Fri, 07 Dec 2007 16:50:19 +0300 From: Gregory Shimansky User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [drlvm] linking with runtime libraries on windows References: <4715B99D.5000506@apache.org> <47187AD0.7080701@apache.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: Gregory Shimansky X-Virus-Checked: Checked by ClamAV on apache.org Alexey Varlamov пишет: > Good news here. > A couple of memory corruption bugs were resolved recently, so I was > able to integrate the fix at r602080. > As a bonus, total size of drlvm dlls become less for ~4M on Win32 and > ~12M on Win64. Not bad IMO ;) This is really good news. Thank you Alexey! > PS Beware to do clean rebuild of drlvm. > -- > Regards, > Alexey > > 2007/10/19, Gregory Shimansky : >> Alexey Varlamov wrote: >>> Guys, I've filed HARMONY-4973 with workable patch. >>> Bad news is that there are spurious errors in gc_gen shutdown (see the >>> JIRA for details), most possibly corrupted heap :(. BTW, I possibly >>> found mismatching "delete" vs "free" usage: >>> vm/gc_gen/src/thread/marker.cpp:143: delete marker->trace_stack; >>> vm/gc_gen/src/thread/collector.cpp:223: delete collector->trace_stack; >>> >>> But those are not the rootcause. Any help or ideas will be appreciated... >> There was a reported problem with recent updates that some tests crash >> on shutdown with diagnostics about corrupted C heap. There is a JIRA >> that might help with it (HARMONY-4960). I am currently testing it and >> I'll report whether it fixes corrupted heap on interpreter. Maybe heap >> is actually corrupted in JIT mode as well, but MSVC checks don't detect >> it when VM is built without your patch. >> >>> 2007/10/17, Alexey Varlamov : >>>> A kind of roadblock here is the initial issue of debug vs release >>>> runtime DLLs. It is desirable to have fully redistributable debug >>>> build, isn't it? So it would be nice to avoid MSVCR71D.DLL dependency. >>>> Actually the sole thing which requires debug runtime is the >>>> disable_assert_dialogs() feature, which may affect release build as >>>> well - e.g. if we compile release but w/o NDEBUG to leave asserts >>>> enabled. I'll try to dig if it can be workarounded. >>>> >>>> -- >>>> Alexey >>>> >>>> >>>> 2007/10/17, Gregory Shimansky : >>>>> Alexey Varlamov wrote: >>>>>> Hi all, >>>>>> >>>>>> Looking on HARMONY-3964 "[drlvm][build] missing MSVCR71D.DLL >>>>>> dependency for debug builds", I'm surprised to realize that only GC >>>>>> dlls in VM ever depend on MSVCR*.DLL, no matter release or debug. >>>>>> All the rest of VM is linked against static LIBCMTD.LIB so every dll >>>>>> carries it's own copy of C runtime, with independent heaps and static >>>>>> data! Now it explains all that troubles with bad frees in >>>>>> HARMONY-3772, and why each dll has to disable assert dialog >>>>>> individually (HARMONY-4715). I've just tried fully dynamic build and >>>>>> indeed all these problems are gone. >>>>>> >>>>>> I guess why it was done so, and the only reason I could think of is >>>>>> historycal. Does anyone knows other explanation? Otherwise I believe >>>>>> the build must be fixed to link with MSVCRxx.DLL always. Especially as >>>>>> we already redistribute them with classlib. >>>>> I agree very much that dynamic build would be much better. The only >>>>> reason why it wasn't done I think is that it just wasn't easy to do this >>>>> in the current ant based build system. If you can do it please go ahead >>>>> and commit! >>>>> >>>>> BTW don't forget about windows x86_64. >>>>> >>>>> -- >>>>> Gregory >>>>> >>>>> >> >> -- >> Gregory >> >>