< prev index next >
jdk/src/java.base/share/native/libjava/StackTraceElement.c
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 21,47 ****
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
- /*
- * Implementation of class StackFrameInfo
- */
-
#include <stdio.h>
#include <signal.h>
#include "jni.h"
#include "jvm.h"
! #include "java_lang_StackFrameInfo.h"
! /*
! * Class: java_lang_StackFrameInfo
! * Method: toStackTraceElement0
! * Signature: (Ljava/lang/StackTraceElement;)V
! */
! JNIEXPORT void JNICALL Java_java_lang_StackFrameInfo_toStackTraceElement0
! (JNIEnv *env, jobject stackframeinfo, jobject stacktraceinfo) {
! JVM_ToStackTraceElement(env, stackframeinfo, stacktraceinfo);
}
--- 21,43 ----
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <stdio.h>
#include <signal.h>
#include "jni.h"
#include "jvm.h"
! #include "java_lang_StackTraceElement.h"
+ JNIEXPORT void JNICALL Java_java_lang_StackTraceElement_fillFromStackFrameInfo
+ (JNIEnv *env, jobject element, jobject stackframeinfo) {
+ JVM_ToStackTraceElement(env, stackframeinfo, element);
+ }
! JNIEXPORT void JNICALL Java_java_lang_StackTraceElement_fillStackTraceFromThrowable
! (JNIEnv *env, jobject dummy, jobjectArray elements, jobject throwable)
! {
! JVM_GetStackTraceElements(env, throwable, elements);
}
< prev index next >