[kaffe] Kaffe CVS: kaffe hkraemer

Kaffe CVS cvs-commits at kaffe.org
Sun Jul 27 09:57:01 PDT 2003


CVSROOT:	/cvs/kaffe
Module name:	kaffe
Changes by:	hkraemer	03/07/27 09:53:49

Modified files:
	.              : configure configure.in 
	libraries/clib/native: ThreadStack.c 
	kaffe/kaffevm  : classMethod.c classMethod.h classPool.c 
	                 exception.c exception.h gcFuncs.c jni.c 
	                 methodCache.c methodCache.h soft.c stackTrace.c 
	                 stackTrace.h support.c threadData.h 
	kaffe/kaffevm/intrp: Makefile.am Makefile.in icode.h machine.c 
	kaffe/kaffevm/jit: Makefile.am Makefile.in icode.c 
	                   icode_internal.h machine.c 
	kaffe/kaffevm/jit3: Makefile.am Makefile.in machine.c 
Added files:
	kaffe/kaffevm/intrp: stackTrace-impl.h 
	kaffe/kaffevm/jit: stackTrace-impl.h 
	kaffe/kaffevm/jit3: stackTrace-impl.h 

Log message:
2003-07-27  Helmer Kraemer <hkraemer at freenet.de>

* kaffe/kaffevm/jit/machine.c,
kaffe/kaffevm/jit3/machine.c:
(initInsnSequence) insert the translated method as the
first entry into the constant pool, so it can easily be
retrieved when creating stack traces

* kaffe/kaffevm/gcFuncs.c,
kaffe/kaffevm/jit3/machine.c,
kaffe/kaffevm/classPool.c:
removed calls to makeMethodActive and makeMethodInactive,
as they are no longer necessary

* kaffe/kaffevm/methodCache.h, kaffe/kaffevm/methodCache.c,
kaffe/kaffevm/classMethod.h, kaffe/kaffevm/classPool.c:
wrapped findMethodFromPC and related stuff into #if 0, since
its not needed at the moment

* kaffe/kaffevm/intrp/stackTrace-impl.h,
kaffe/kaffevm/jit/stackTrace-impl.h,
kaffe/kaffevm/jit3/stackTrace-impl.h:
new files containing the engine specific part of stack trace
creation

* kaffe/kaffevm/stackTrace.c:
(stackTraceFindMethod) rewrote the translator version
assuming that the struct methods* of the translated
method is the first entry in the constant pool; made it
static
(buildStackTrace) directly initialize meth field using stackTraceFindMethod
(printStackTrace) updated accordingly

* libraries/clib/native/ThreadStack.c:
(kaffe_lang_ThreadStack_getClassStack) likewise

* kaffe/kaffevm/intrp/Makefile.am,
kaffe/kaffevm/jit/Makefile.am,
kaffe/kaffevm/jit3/Makefile.am:
(EXTRA_DIST) added stackTrace-impl.h

* kaffe/kaffevm/intrp/Makefile.in,
kaffe/kaffevm/jit/Makefile.in,
kaffe/kaffevm/jit3/Makefile.in:
regenerated

* kaffe/kaffevm/exception.c:
(nextFrame) splitted and moved into the different
stackTrace-impl headers
(dispatchException) rewritten so it works for both, the
interpreter and the translator

* kaffe/kaffevm/exception.h:
(VmExceptHandler) renamed struct jit to struct jni
(vmExcept_setSyncobj, vmExcept_getSyncobj) renamed to
vmExcept_setSyncObj and vmExcept_getSyncObj
(vmExcept_JNIContains) made available for intrp
removed some unnecessary declarations that don't belong here

* kaffe/kaffevm/jni.c:
(KAFFE_JNI_SETEXCEPTFP) use vmExceptPtr as fp of jni frame,
so there's no need to special case handling of jni frames
when dispatching exceptions in intrp mode

* kaffe/kaffevm/support.c:
adapted interpreter specific part to per-thread JNIEnv

* kaffe/kaffevm/intrp/icode.h,
kaffe/kaffevm/jit/icode_internal.h,
kaffe/kaffevm/jit/icode.c:
added softcall_incompatibleclasschange

* kaffe/kaffevm/soft.c:
(soft_checkcast) include class loaders into the message if
they are different

* configure.in:
add $abssrcdir/kaffe/kaffevm/$with_engine to CPPFLAGS

* configure:
regenerated





More information about the kaffe mailing list