Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 2366 invoked from network); 4 Nov 2005 21:10:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Nov 2005 21:10:08 -0000 Received: (qmail 45132 invoked by uid 500); 4 Nov 2005 21:10:07 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 45069 invoked by uid 500); 4 Nov 2005 21:10:06 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 45058 invoked by uid 99); 4 Nov 2005 21:10:06 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 04 Nov 2005 13:10:06 -0800 Received: (qmail 2184 invoked by uid 65534); 4 Nov 2005 21:09:46 -0000 Message-ID: <20051104210946.2169.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r330899 - in /incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src: native.c native.h Date: Fri, 04 Nov 2005 21:09:45 -0000 To: harmony-commits@incubator.apache.org From: dlydick@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: dlydick Date: Fri Nov 4 13:09:34 2005 New Revision: 330899 URL: http://svn.apache.org/viewcvs?rev=330899&view=rev Log: Added mechanism for internal support of strings as a quasi-primative. Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.c incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.h Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.c URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.c?rev=330899&r1=330898&r2=330899&view=diff ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.c (original) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.c Fri Nov 4 13:09:34 2005 @@ -1675,4 +1675,32 @@ } /* END of native_run_method() */ +/*! + * @name Hooks into java.lang.String fields + * + * @brief Use hard-coded field positions in class file to + * recognize string array contents reference and length of array + * + * These global variables are loaded with constants from the JNI + * header files because those headers are @e never to @e ever be + * referenced from the core JVM code. Only this file and the + * actual JNI implementations should @e ever reference them. Yet, + * these symbols, being crucial to JVM string operation, must be + * intrinsically related to the JNI implementation. Hence this + * compromise. + * + */ + +/*@{ */ /* Begin grouped definitions */ + +rint native_jlString_critical_field_value = + JLSTRING_CRITICAL_FIELD_VALUE; + +rint native_jlString_critical_field_length = + JLSTRING_CRITICAL_FIELD_LENGTH; + +rint native_jlString_critical_num_fields = JLSTRING_CRITICAL_NUM_FIELDS; + +/*@} */ /* End grouped definitions */ + /* EOF */ Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.h URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.h?rev=330899&r1=330898&r2=330899&view=diff ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.h (original) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/native.h Fri Nov 4 13:09:34 2005 @@ -64,6 +64,10 @@ jvm_constant_pool_index mthdescidx, rboolean find_registerNatives); +extern rint native_jlString_critical_field_value; +extern rint native_jlString_critical_field_length; +extern rint native_jlString_critical_num_fields; + #endif /* _native_h_included_ */ /* EOF */