Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 50599 invoked from network); 13 Mar 2008 13:47:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2008 13:47:30 -0000 Received: (qmail 24713 invoked by uid 500); 13 Mar 2008 13:47:26 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 24676 invoked by uid 500); 13 Mar 2008 13:47:26 -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 24667 invoked by uid 99); 13 Mar 2008 13:47:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 06:47:26 -0700 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 oliver.deakin@googlemail.com designates 216.239.58.186 as permitted sender) Received: from [216.239.58.186] (HELO gv-out-0910.google.com) (216.239.58.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 13:46:46 +0000 Received: by gv-out-0910.google.com with SMTP id r4so912322gve.22 for ; Thu, 13 Mar 2008 06:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.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; bh=9cm9W3VJ5oAb/PJxSCYvmidGTdrkfdKGURIwITH3X2s=; b=dfoDYAtIRGoF/bnnw218eso2+EX1gcu5ryffOGo+Vx1rKHpUKwwwuQqw9aM8ANc1bo9eu0q5QTx+f1jLzH2uG52fooApkdGi3rwXq6lWTsd+HsrngXwd9KX1k9bE1qxns/u3geW/Qflxy1L0wPbsYHh47OzEAmHP0jsHE461hXQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=CvVUpKxt98opsX5P5Z2qx9CBm21jkyhewxculcS4/SfRWzgxqcdcr/1VxHpb3qa9nBWrKHmqjVVeIKJPeJEjY9pqDTeT8f1aWy9Vid0P3cppqyjM9AGOlPsxA4LhZalpwh357LcXyEM6Gs5CrJlEBunxt5bMHiY8wyVDD9iWoGM= Received: by 10.151.82.3 with SMTP id j3mr5443360ybl.78.1205416014828; Thu, 13 Mar 2008 06:46:54 -0700 (PDT) Received: from ?9.20.183.78? ( [195.212.29.67]) by mx.google.com with ESMTPS id c25sm2856938ika.9.2008.03.13.06.46.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Mar 2008 06:46:48 -0700 (PDT) Message-ID: <47D93035.90404@googlemail.com> Date: Thu, 13 Mar 2008 13:46:29 +0000 From: Oliver Deakin User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [JDKTools][JDWP] Shared memory transport References: <5c8e69f0802211930r1f27c40fwd0c3cbfa8aa9075a@mail.gmail.com> <5c8e69f0802220322g18d30f33k41aede96e8dbb9a9@mail.gmail.com> <47D92355.6000803@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Alexei! I am writing the code for Windows only (as it is on the RI) and have been using Windows API calls (CreateFileMapping(), MapViewOfFile() etc.) directly rather than portlib calls. I did investigate using portlib, but it would require a number of portlib changes to get working (the shared memory calls in Harmony portlib don't actually do what you'd expect!). For the time being I plan to continue using the Windows API directly so that I can get it up and running easily, as the time is currently better spent investigating how to implement the transport. Perhaps moving to portlib is something for the future, but the amount of work required to do this would not be trivial. Regards, Oliver Alexei Fedotov wrote: > Oliver, > That is great! BTW, which API are you using for shared memory access? > Is it a part of the portlib? > > Thanks! > > On Thu, Mar 13, 2008 at 3:51 PM, Oliver Deakin > wrote: > >> Hi Jimmy/Alexei, >> >> Im starting to look at implementing shared memory transport for jdwp. >> It's very early days at the moment, but I have been able to open the >> shared memory space (created by the RI running as server) and read some >> data from it. I have also been able to mirror this behaviour, with >> Harmony running in server mode. I will start to check in some changes >> soon, initially for the build system to start building dt_shmem.dll on >> Windows. After that I will start checking in some of my code and add >> some changes to the jpda test setup so it can run the tests in shared >> memory mode. >> >> Regards, >> Oliver >> >> Jimmy,Jing Lv wrote: >> > Hi, >> > >> > 2008/2/22, Alexei Fedotov : >> > >> >> Jimmy, >> >> >> >> I fully support your idea, but cannot follow the discussion fully. The >> >> old thread mostly discussed a shared memory protocol, didn't it? This >> >> thread no longer mentions a shared memory, but discusses an API update >> >> instead. May be all these things are parts of the whole picture, but >> >> the picture slips out of my mind. I would suggest being merciful to my >> >> google-weakened brain and write some justifications of the decision >> >> taken. >> >> >> >> >> > >> > Yes, I never forget shared memory, but it seems we need more >> > information of that (according to the conclusion of last discussion). >> > However java6 updating is easier to work on and we've got all >> > information on java spec, as a result, IMO, we'd better start from the >> > easy beginning, and leave hard work alone until we find some other way >> > to resolve it, do you think so? :) (Maybe someone already has a plan >> > on it :) >> > BTW, as today is friday, have a nice weekend :) >> > >> > >> >> For example, I believe Mikhail L. justification: "I don't think that >> >> time and efforts are an issue. The time flies when you are having fun >> >> :)" is quite explanatory. Or you may come up with something more >> >> rational. >> >> >> >> Thanks. >> >> >> >> >> >> On Fri, Feb 22, 2008 at 6:30 AM, Jimmy,Jing Lv wrote: >> >> > Hi All, >> >> > >> >> > As discussed before, we can start JDWP updating and improving. >> >> > IMHO, let's start from the easiest way, updating to java 6. >> >> > My proposal is: >> >> > 1. Setup a branch of JDKTools for java6 in harmony repository >> >> > 2. add/improve JDWP functions into java6 level. As the main updating >> >> > for java6 JDWP is about JDWP-protocol, it seems no much effect on VM >> >> > and debugger. >> >> > >> >> > As M5 freeze will be done at the end of this week, may start >> >> > from next week on. Any comments/suggestions/Volunteers? Thanks! >> >> > >> >> > -- >> >> > >> >> > Best Regards! >> >> > >> >> > Jimmy, Jing Lv >> >> > China Software Development Lab, IBM >> >> > >> >> >> >> >> >> >> >> >> >> -- >> >> With best regards, >> >> >> >> Alexei >> >> >> >> >> > >> > >> > >> >> -- >> Oliver Deakin >> Unless stated otherwise above: >> IBM United Kingdom Limited - Registered in England and Wales with number 741598. >> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU >> >> >> > > > > -- Oliver Deakin Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU