mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8194991: Null pointer dereference caused by c2v_getNextStackFrame
Reviewed-by: kvn
This commit is contained in:
parent
0e3410b141
commit
fc7971a33d
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1424,6 +1424,7 @@ C2V_VMENTRY(jobject, getNextStackFrame, (JNIEnv*, jobject compilerToVM, jobject
|
||||||
Deoptimization::reassign_fields(fst.current(), fst.register_map(), scope->objects(), realloc_failures, false);
|
Deoptimization::reassign_fields(fst.current(), fst.register_map(), scope->objects(), realloc_failures, false);
|
||||||
|
|
||||||
GrowableArray<ScopeValue*>* local_values = scope->locals();
|
GrowableArray<ScopeValue*>* local_values = scope->locals();
|
||||||
|
assert(local_values != NULL, "NULL locals");
|
||||||
typeArrayOop array_oop = oopFactory::new_boolArray(local_values->length(), CHECK_NULL);
|
typeArrayOop array_oop = oopFactory::new_boolArray(local_values->length(), CHECK_NULL);
|
||||||
typeArrayHandle array(THREAD, array_oop);
|
typeArrayHandle array(THREAD, array_oop);
|
||||||
for (int i = 0; i < local_values->length(); i++) {
|
for (int i = 0; i < local_values->length(); i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue