harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r367432 - in /incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc: native/gnu_classpath_VMStackWalker.c native_lib.c
Date Tue, 10 Jan 2006 00:05:46 GMT
Author: archie
Date: Mon Jan  9 16:05:43 2006
New Revision: 367432

URL: http://svn.apache.org/viewcvs?rev=367432&view=rev
Log:
Implement native method gnu.classpath.VMStackWalker.getClassLoader(),
which is in the upcoming Classpath 0.20, and add a backward-compatible
function declaration for Classpath 0.19.

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native/gnu_classpath_VMStackWalker.c
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native_lib.c

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native/gnu_classpath_VMStackWalker.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native/gnu_classpath_VMStackWalker.c?rev=367432&r1=367431&r2=367432&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native/gnu_classpath_VMStackWalker.c
(original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native/gnu_classpath_VMStackWalker.c
Mon Jan  9 16:05:43 2006
@@ -20,6 +20,7 @@
 
 #include "libjc.h"
 #include "gnu_classpath_VMStackWalker.h"
+#include "java_lang_VMClass.h"
 
 /* Internal functions */
 static jboolean	_jc_poppable_method(_jc_jvm *vm, _jc_method *method);
@@ -151,5 +152,11 @@
 
 	/* Done */
 	return array;
+}
+
+_jc_object * _JC_JCNI_ATTR
+JCNI_gnu_classpath_VMStackWalker_getClassLoader(_jc_env *env, _jc_object *clobj)
+{
+	return JCNI_java_lang_VMClass_getClassLoader(env, clobj);
 }
 

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native_lib.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native_lib.c?rev=367432&r1=367431&r2=367432&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native_lib.c (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/native_lib.c Mon
Jan  9 16:05:43 2006
@@ -42,6 +42,10 @@
 static void	*_jc_dlsym(void *handle, const char *name);
 static int	_jc_ilib_compare(const void *item1, const void *item2);
 
+/* Backward compat for classpath-0.19 */
+extern _jc_object *JCNI_gnu_classpath_VMStackWalker_getClassLoader(_jc_env *,
+			_jc_object *) _JC_JCNI_ATTR;
+
 /*
  * Internal JCNI native methods.
  *
@@ -50,6 +54,7 @@
 #define _JC_ILIB_ENTRY(method)	{ "JCNI_" #method, JCNI_ ## method }
 static const _jc_ilib_entry _jc_ilib_table[] = {
 	_JC_ILIB_ENTRY(gnu_classpath_VMStackWalker_getClassContext),
+	_JC_ILIB_ENTRY(gnu_classpath_VMStackWalker_getClassLoader),
 	_JC_ILIB_ENTRY(gnu_classpath_VMSystemProperties_preInit),
 	_JC_ILIB_ENTRY(java_lang_VMClassLoader_defineClass),
 	_JC_ILIB_ENTRY(java_lang_VMClassLoader_findLoadedClass),



Mime
View raw message