0N/A/*
3157N/A * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
1879N/A#ifndef SHARE_VM_CI_CIENV_HPP
1879N/A#define SHARE_VM_CI_CIENV_HPP
1879N/A
1879N/A#include "ci/ciClassList.hpp"
1879N/A#include "ci/ciObjectFactory.hpp"
1879N/A#include "classfile/systemDictionary.hpp"
1879N/A#include "code/debugInfoRec.hpp"
1879N/A#include "code/dependencies.hpp"
1879N/A#include "code/exceptionHandlerTable.hpp"
1879N/A#include "compiler/oopMap.hpp"
1879N/A#include "runtime/thread.hpp"
1879N/A
0N/Aclass CompileTask;
0N/A
0N/A// ciEnv
0N/A//
0N/A// This class is the top level broker for requests from the compiler
0N/A// to the VM.
0N/Aclass ciEnv : StackObj {
0N/A CI_PACKAGE_ACCESS_TO
0N/A
0N/A friend class CompileBroker;
0N/A friend class Dependencies; // for get_object, during logging
0N/A
0N/Aprivate:
0N/A Arena* _arena; // Alias for _ciEnv_arena except in init_shared_objects()
0N/A Arena _ciEnv_arena;
0N/A int _system_dictionary_modification_counter;
0N/A ciObjectFactory* _factory;
0N/A OopRecorder* _oop_recorder;
0N/A DebugInformationRecorder* _debug_info;
0N/A Dependencies* _dependencies;
0N/A const char* _failure_reason;
0N/A int _compilable;
0N/A bool _break_at_compile;
0N/A int _num_inlined_bytecodes;
0N/A CompileTask* _task; // faster access to CompilerThread::task
0N/A CompileLog* _log; // faster access to CompilerThread::log
0N/A void* _compiler_data; // compiler-specific stuff, if any
0N/A
0N/A char* _name_buffer;
0N/A int _name_buffer_len;
0N/A
780N/A // Cache Jvmti state
780N/A bool _jvmti_can_hotswap_or_post_breakpoint;
780N/A bool _jvmti_can_access_local_variables;
1213N/A bool _jvmti_can_post_on_exceptions;
780N/A
780N/A // Cache DTrace flags
780N/A bool _dtrace_extended_probes;
780N/A bool _dtrace_monitor_probes;
780N/A bool _dtrace_method_probes;
780N/A bool _dtrace_alloc_probes;
780N/A
0N/A // Distinguished instances of certain ciObjects..
0N/A static ciObject* _null_object_instance;
0N/A static ciMethodKlass* _method_klass_instance;
0N/A static ciKlassKlass* _klass_klass_instance;
0N/A static ciInstanceKlassKlass* _instance_klass_klass_instance;
0N/A static ciTypeArrayKlassKlass* _type_array_klass_klass_instance;
0N/A static ciObjArrayKlassKlass* _obj_array_klass_klass_instance;
0N/A
1142N/A#define WK_KLASS_DECL(name, ignore_s, ignore_o) static ciInstanceKlass* _##name;
1142N/A WK_KLASSES_DO(WK_KLASS_DECL)
1142N/A#undef WK_KLASS_DECL
0N/A
0N/A static ciSymbol* _unloaded_cisymbol;
0N/A static ciInstanceKlass* _unloaded_ciinstance_klass;
0N/A static ciObjArrayKlass* _unloaded_ciobjarrayklass;
0N/A
0N/A static jobject _ArrayIndexOutOfBoundsException_handle;
0N/A static jobject _ArrayStoreException_handle;
0N/A static jobject _ClassCastException_handle;
0N/A
0N/A ciInstance* _NullPointerException_instance;
0N/A ciInstance* _ArithmeticException_instance;
0N/A ciInstance* _ArrayIndexOutOfBoundsException_instance;
0N/A ciInstance* _ArrayStoreException_instance;
0N/A ciInstance* _ClassCastException_instance;
0N/A
1080N/A ciInstance* _the_null_string; // The Java string "null"
1080N/A ciInstance* _the_min_jint_string; // The Java string "-2147483648"
1080N/A
0N/A // Look up a klass by name from a particular class loader (the accessor's).
0N/A // If require_local, result must be defined in that class loader, or NULL.
0N/A // If !require_local, a result from remote class loader may be reported,
0N/A // if sufficient class loader constraints exist such that initiating
0N/A // a class loading request from the given loader is bound to return
0N/A // the class defined in the remote loader (or throw an error).
0N/A //
0N/A // Return an unloaded klass if !require_local and no class at all is found.
0N/A //
0N/A // The CI treats a klass as loaded if it is consistently defined in
0N/A // another loader, even if it hasn't yet been loaded in all loaders
0N/A // that could potentially see it via delegation.
0N/A ciKlass* get_klass_by_name(ciKlass* accessing_klass,
0N/A ciSymbol* klass_name,
0N/A bool require_local);
0N/A
0N/A // Constant pool access.
1138N/A ciKlass* get_klass_by_index(constantPoolHandle cpool,
0N/A int klass_index,
1138N/A bool& is_accessible,
1138N/A ciInstanceKlass* loading_klass);
1138N/A ciConstant get_constant_by_index(constantPoolHandle cpool,
1522N/A int pool_index, int cache_index,
1138N/A ciInstanceKlass* accessor);
0N/A ciField* get_field_by_index(ciInstanceKlass* loading_klass,
Error!

 

There was an error!

null

java.lang.NullPointerException