Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 25592 invoked from network); 3 Jan 2008 13:00:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2008 13:00:02 -0000 Received: (qmail 23792 invoked by uid 500); 3 Jan 2008 12:59:48 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 23707 invoked by uid 500); 3 Jan 2008 12:59:47 -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 23660 invoked by uid 99); 3 Jan 2008 12:59:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 04:59:47 -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 t.p.ellison@gmail.com designates 209.85.128.188 as permitted sender) Received: from [209.85.128.188] (HELO fk-out-0910.google.com) (209.85.128.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 12:59:23 +0000 Received: by fk-out-0910.google.com with SMTP id 18so7215512fks.4 for ; Thu, 03 Jan 2008 04:59:26 -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:x-enigmail-version:content-type:content-transfer-encoding; bh=iM+oOp82Dg7U5Frog+zhxqsGR+mRsq8yj11Mya6VlLc=; b=Wd78JMPCXixrB+1DGfNy40SjJEtfflm4ZCX6hZbLQi7aJOnZWT8WeiJ9xCbBjRlJDsrSsu357Occfum3GZ6cYCSEFayYBgI4a1yCKO/K/MSNC2Rm78QP5yYPB3nKQoB+N3rCAsi//oDm8sEABcUalL+XKKdEoOAYmuvc1a4sEkM= 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:x-enigmail-version:content-type:content-transfer-encoding; b=xOXWiAzUIkQL+vjDXhwyy+4DGsX9KcPNkECGyMuuTYMbphR29FFECiuGqvnwJmLV8zy7LhX6wnTiYrgeu3pxvyiQLogqMw7UP6ateZDT6itJFULB0OINAZIP8rHGc8sgJ+xDeqKaDdIuepi+ljRH7MpTlIf+yNOagDV4Pjw+7Jc= Received: by 10.78.200.3 with SMTP id x3mr17986343huf.0.1199365166489; Thu, 03 Jan 2008 04:59:26 -0800 (PST) Received: from ?9.20.183.163? ( [195.212.29.67]) by mx.google.com with ESMTPS id j4sm16475829ugf.49.2008.01.03.04.59.24 (version=SSLv3 cipher=RC4-MD5); Thu, 03 Jan 2008 04:59:25 -0800 (PST) Message-ID: <477CDC2B.80703@gmail.com> Date: Thu, 03 Jan 2008 12:59:23 +0000 From: Tim Ellison User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [drlvm][jitrino]question about the method without code References: In-Reply-To: X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org 史成荣 wrote: > hi, I found some methods in the classlib have no code, and found just a > "return" instruction in the corresponding .class file, for example > Java.lang.object.wait(). But when JIT compiles the bytecode of such methods, > I found the bytecode contains not only the "return" instruction. Many other > instructions are contained in the bytecode. Could anyone tell me when and > how other instructions are included in the bytecode? Are you looking at the stubs by accident? The VM-specifc 'kernel' types are provided as compile-against stubs in jre/lib/boot/luni-kernel-stubs.jar and security-kernel-stubs.jar. The actual implementations are in VM-specific subdirectories in jre/bin, e.g. jre/bin/default/kernel.jar Regards, Tim