harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlyd...@apache.org
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 GMT
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 */



Mime
View raw message