src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
changeset 48605 00d8c8d696e9
parent 48400 8604408bc26e
child 48607 7fc3d62481ba
equal deleted inserted replaced
48604:37a5a1109b93 48605:00d8c8d696e9
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  1422             if (scope != NULL && scope->objects() != NULL) {
  1422             if (scope != NULL && scope->objects() != NULL) {
  1423               bool realloc_failures = Deoptimization::realloc_objects(thread, fst.current(), scope->objects(), CHECK_NULL);
  1423               bool realloc_failures = Deoptimization::realloc_objects(thread, fst.current(), scope->objects(), CHECK_NULL);
  1424               Deoptimization::reassign_fields(fst.current(), fst.register_map(), scope->objects(), realloc_failures, false);
  1424               Deoptimization::reassign_fields(fst.current(), fst.register_map(), scope->objects(), realloc_failures, false);
  1425 
  1425 
  1426               GrowableArray<ScopeValue*>* local_values = scope->locals();
  1426               GrowableArray<ScopeValue*>* local_values = scope->locals();
       
  1427               assert(local_values != NULL, "NULL locals");
  1427               typeArrayOop array_oop = oopFactory::new_boolArray(local_values->length(), CHECK_NULL);
  1428               typeArrayOop array_oop = oopFactory::new_boolArray(local_values->length(), CHECK_NULL);
  1428               typeArrayHandle array(THREAD, array_oop);
  1429               typeArrayHandle array(THREAD, array_oop);
  1429               for (int i = 0; i < local_values->length(); i++) {
  1430               for (int i = 0; i < local_values->length(); i++) {
  1430                 ScopeValue* value = local_values->at(i);
  1431                 ScopeValue* value = local_values->at(i);
  1431                 if (value->is_object()) {
  1432                 if (value->is_object()) {