mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8151728: jni test crashes JVM assert(_handle != __null) failed: resolving NULL handle
New assert needs to check for null. Reviewed-by: hseigel, gtriantafill
This commit is contained in:
parent
edd3f7ca77
commit
f582dd7616
1 changed files with 1 additions and 1 deletions
|
@ -1687,7 +1687,7 @@ class BacktraceIterator : public StackObj {
|
|||
public:
|
||||
BacktraceIterator(objArrayHandle result, Thread* thread) {
|
||||
init(result, thread);
|
||||
assert(_methods->length() == java_lang_Throwable::trace_chunk_size, "lengths don't match");
|
||||
assert(_methods.is_null() || _methods->length() == java_lang_Throwable::trace_chunk_size, "lengths don't match");
|
||||
}
|
||||
|
||||
BacktraceElement next(Thread* thread) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue