Signed-off-by: Tomek Grabiec
---
jit/exception.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/jit/exception.c b/jit/exception.c
index b1deb30..c5a7160 100644
--- a/jit/exception.c
+++ b/jit/exception.c
@@ -122,8 +122,7 @@ int signal_new_exception_with_cause(struct v
Signed-off-by: Tomek Grabiec
---
jit/ostack-bc.c| 18
test/arch-x86/Makefile |2 +
test/jit/bytecode-to-ir-stub.c | 10
test/jit/ostack-bc-test.c | 100 +++-
4 files changed, 48 insertions(+), 82 deletions(-)
Signed-off-by: Tomek Grabiec
---
Makefile |1 +
regression/jvm/DupTest.j | 294 ++
regression/run-suite.sh |1 +
3 files changed, 296 insertions(+), 0 deletions(-)
create mode 100644 regression/jvm/DupTest.j
diff --git a/Mak
Signed-off-by: Tomek Grabiec
---
include/jit/expression.h |1 +
jit/expression.c | 14 ++
jit/object-bc.c | 14 --
3 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/include/jit/expression.h b/include/jit/expression.h
index be53649..
When print_trace() is called from unit tests it cannot use stack walker
functionallity because it's stubbed. There is no need to use it anyway
because we should not encounter JIT frames there. Solution for this
is to use standard backtrace() function for stack trace printing
in unit tests.
Signed-
Backtrace is now printed using the VM stack walker. One advantage of
this is that it can recognize JIT, trampoline, VM native and JNI
frames. JIT frames have different format than native frames - return
address is misplaced so the stamdard backtrace() doesn't work with jit
frames involved.
Example
Signed-off-by: Tomek Grabiec
---
vm/stack-trace.c |3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/vm/stack-trace.c b/vm/stack-trace.c
index 1fe185d..11fc9a7 100644
--- a/vm/stack-trace.c
+++ b/vm/stack-trace.c
@@ -455,6 +455,9 @@ void print_java_stack_trace_elem(struct
As java/lang/String.substring() is now working so is
java/lang/Throwable.stackTraceString(). It allows us to get the full
exception descripton with just one method call.
Signed-off-by: Tomek Grabiec
---
include/vm/preload.h |8 +--
test/vm/preload-stub.c |8 +--
vm/preload.c
Some exception classes have dedicated constructors for setting
exception's cause. For such classes we shouldn't set the cause with
initCause() bacuuse the cause might be stored somewhere else than
Throwable.cause. See for example java/lang/ExceptionInInitializerError
class.
Signed-off-by: Tomek Gr
On Sun, 2009-07-26 at 13:22 +0200, Tomek Grabiec wrote:
> Please hold on with merging this one because I noticed that for some
> reason "Caused by:" parts are not printed after this patch, which
> seems to be a bug in JIT.
OK, I reverted the commit from master now.
--
2009/7/26 Tomek Grabiec :
> As java/lang/String.substring() is now working so is
> java/lang/Throwable.stackTraceString(). It allows us to get the full
> exception descripton with just one method call.
>
> Signed-off-by: Tomek Grabiec
> ---
> include/vm/preload.h | 8 +--
> test/vm/preload-s
As java/lang/String.substring() is now working so is
java/lang/Throwable.stackTraceString(). It allows us to get the full
exception descripton with just one method call.
Signed-off-by: Tomek Grabiec
---
include/vm/preload.h |8 +--
test/vm/preload-stub.c |8 +--
vm/preload.c
This leads to a buglet that new line character '\n'
is converted to <10> string, so when converting multiple
lined strings to C strings we loose line breaks.
Same applies for other control characters.
Signed-off-by: Tomek Grabiec
---
vm/object.c |2 +-
1 files changed, 1 insertions(+), 1 del
This can be used to set/override system properties.
Signed-off-by: Tomek Grabiec
---
vm/jato.c | 141
1 files changed, 122 insertions(+), 19 deletions(-)
diff --git a/vm/jato.c b/vm/jato.c
index b7f7e3d..f75ca00 100644
--- a/vm/jato.
Before library is loaded classpath tries to load it from multiple
paths. We shouldn't print eny errors if some of them fail.
Signed-off-by: Tomek Grabiec
---
vm/jni.c |4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/vm/jni.c b/vm/jni.c
index 8c80afe..9af45cb 100644
---
The series has been applied, thanks!
--
___
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel
16 matches
Mail list logo