2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-12-28 13:59:20 -05:00
|
|
|
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
2010-05-27 19:08:38 -07:00
|
|
|
* 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.
|
2007-12-01 00:00:00 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-11-23 13:22:55 -08:00
|
|
|
#ifndef SHARE_VM_CLASSFILE_VMSYMBOLS_HPP
|
|
|
|
#define SHARE_VM_CLASSFILE_VMSYMBOLS_HPP
|
|
|
|
|
2015-08-18 11:27:23 -07:00
|
|
|
#include "classfile/vmSymbols_ext.hpp"
|
2011-01-27 16:11:27 -08:00
|
|
|
#include "oops/symbol.hpp"
|
|
|
|
#include "memory/iterator.hpp"
|
2012-03-06 12:36:59 +01:00
|
|
|
#include "trace/traceMacros.hpp"
|
2015-10-08 12:49:30 -10:00
|
|
|
#include "jvmci/vmSymbols_jvmci.hpp"
|
2010-11-23 13:22:55 -08:00
|
|
|
|
2011-01-27 16:11:27 -08:00
|
|
|
// The class vmSymbols is a name space for fast lookup of
|
|
|
|
// symbols commonly used in the VM.
|
2007-12-01 00:00:00 +00:00
|
|
|
//
|
|
|
|
// Sample usage:
|
|
|
|
//
|
2011-01-27 16:11:27 -08:00
|
|
|
// Symbol* obj = vmSymbols::java_lang_Object();
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Useful sub-macros exported by this header file:
|
|
|
|
|
|
|
|
#define VM_SYMBOL_ENUM_NAME(name) name##_enum
|
|
|
|
#define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
|
|
|
|
#define VM_SYMBOL_IGNORE(id, name) /*ignored*/
|
|
|
|
#define VM_ALIAS_IGNORE(id, id2) /*ignored*/
|
|
|
|
|
|
|
|
// Mapping function names to values. New entries should be added below.
|
|
|
|
|
|
|
|
#define VM_SYMBOLS_DO(template, do_alias) \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
/* commonly used class, package, module names */ \
|
|
|
|
template(java_base, "java.base") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_System, "java/lang/System") \
|
|
|
|
template(java_lang_Object, "java/lang/Object") \
|
|
|
|
template(java_lang_Class, "java/lang/Class") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(java_lang_Package, "java/lang/Package") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_String, "java/lang/String") \
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
template(java_lang_StringLatin1, "java/lang/StringLatin1") \
|
|
|
|
template(java_lang_StringUTF16, "java/lang/StringUTF16") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_Thread, "java/lang/Thread") \
|
|
|
|
template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \
|
|
|
|
template(java_lang_Cloneable, "java/lang/Cloneable") \
|
|
|
|
template(java_lang_Throwable, "java/lang/Throwable") \
|
|
|
|
template(java_lang_ClassLoader, "java/lang/ClassLoader") \
|
|
|
|
template(java_lang_ClassLoader_NativeLibrary, "java/lang/ClassLoader\x024NativeLibrary") \
|
|
|
|
template(java_lang_ThreadDeath, "java/lang/ThreadDeath") \
|
|
|
|
template(java_lang_Boolean, "java/lang/Boolean") \
|
|
|
|
template(java_lang_Character, "java/lang/Character") \
|
2007-12-05 09:01:00 -08:00
|
|
|
template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_Float, "java/lang/Float") \
|
|
|
|
template(java_lang_Double, "java/lang/Double") \
|
|
|
|
template(java_lang_Byte, "java/lang/Byte") \
|
2013-05-08 15:08:01 -07:00
|
|
|
template(java_lang_Byte_ByteCache, "java/lang/Byte$ByteCache") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_Short, "java/lang/Short") \
|
2007-12-05 09:01:00 -08:00
|
|
|
template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_Integer, "java/lang/Integer") \
|
2007-12-05 09:01:00 -08:00
|
|
|
template(java_lang_Integer_IntegerCache, "java/lang/Integer$IntegerCache") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_Long, "java/lang/Long") \
|
2007-12-05 09:01:00 -08:00
|
|
|
template(java_lang_Long_LongCache, "java/lang/Long$LongCache") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_Shutdown, "java/lang/Shutdown") \
|
|
|
|
template(java_lang_ref_Reference, "java/lang/ref/Reference") \
|
|
|
|
template(java_lang_ref_SoftReference, "java/lang/ref/SoftReference") \
|
|
|
|
template(java_lang_ref_WeakReference, "java/lang/ref/WeakReference") \
|
|
|
|
template(java_lang_ref_FinalReference, "java/lang/ref/FinalReference") \
|
|
|
|
template(java_lang_ref_PhantomReference, "java/lang/ref/PhantomReference") \
|
|
|
|
template(java_lang_ref_Finalizer, "java/lang/ref/Finalizer") \
|
|
|
|
template(java_lang_reflect_AccessibleObject, "java/lang/reflect/AccessibleObject") \
|
|
|
|
template(java_lang_reflect_Method, "java/lang/reflect/Method") \
|
|
|
|
template(java_lang_reflect_Constructor, "java/lang/reflect/Constructor") \
|
|
|
|
template(java_lang_reflect_Field, "java/lang/reflect/Field") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(java_lang_reflect_Module, "java/lang/reflect/Module") \
|
2013-01-08 14:01:36 -05:00
|
|
|
template(java_lang_reflect_Parameter, "java/lang/reflect/Parameter") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_reflect_Array, "java/lang/reflect/Array") \
|
|
|
|
template(java_lang_StringBuffer, "java/lang/StringBuffer") \
|
2009-11-12 09:24:21 -08:00
|
|
|
template(java_lang_StringBuilder, "java/lang/StringBuilder") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_CharSequence, "java/lang/CharSequence") \
|
2013-03-25 17:13:26 -07:00
|
|
|
template(java_lang_SecurityManager, "java/lang/SecurityManager") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_security_AccessControlContext, "java/security/AccessControlContext") \
|
2014-08-12 17:29:00 -07:00
|
|
|
template(java_security_CodeSource, "java/security/CodeSource") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_security_ProtectionDomain, "java/security/ProtectionDomain") \
|
2014-08-12 17:29:00 -07:00
|
|
|
template(java_security_SecureClassLoader, "java/security/SecureClassLoader") \
|
|
|
|
template(java_net_URL, "java/net/URL") \
|
|
|
|
template(java_util_jar_Manifest, "java/util/jar/Manifest") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_io_OutputStream, "java/io/OutputStream") \
|
|
|
|
template(java_io_Reader, "java/io/Reader") \
|
|
|
|
template(java_io_BufferedReader, "java/io/BufferedReader") \
|
2014-08-12 17:29:00 -07:00
|
|
|
template(java_io_File, "java/io/File") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_io_FileInputStream, "java/io/FileInputStream") \
|
|
|
|
template(java_io_ByteArrayInputStream, "java/io/ByteArrayInputStream") \
|
|
|
|
template(java_io_Serializable, "java/io/Serializable") \
|
|
|
|
template(java_util_Arrays, "java/util/Arrays") \
|
2016-02-18 14:45:13 -05:00
|
|
|
template(java_util_Objects, "java/util/Objects") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_util_Properties, "java/util/Properties") \
|
|
|
|
template(java_util_Vector, "java/util/Vector") \
|
|
|
|
template(java_util_AbstractList, "java/util/AbstractList") \
|
|
|
|
template(java_util_Hashtable, "java/util/Hashtable") \
|
|
|
|
template(java_lang_Compiler, "java/lang/Compiler") \
|
2016-02-18 14:45:13 -05:00
|
|
|
template(jdk_internal_misc_Signal, "jdk/internal/misc/Signal") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_AssertionStatusDirectives, "java/lang/AssertionStatusDirectives") \
|
|
|
|
template(getBootClassPathEntryForClass_name, "getBootClassPathEntryForClass") \
|
2016-04-09 23:03:25 +01:00
|
|
|
template(jdk_internal_vm_PostVMInitHook, "jdk/internal/vm/PostVMInitHook") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(sun_net_www_ParseUtil, "sun/net/www/ParseUtil") \
|
|
|
|
\
|
|
|
|
template(jdk_internal_loader_ClassLoaders_AppClassLoader, "jdk/internal/loader/ClassLoaders$AppClassLoader") \
|
|
|
|
template(jdk_internal_loader_ClassLoaders_PlatformClassLoader, "jdk/internal/loader/ClassLoaders$PlatformClassLoader") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
2012-06-18 12:29:21 -07:00
|
|
|
/* Java runtime version access */ \
|
2016-03-03 12:59:21 +00:00
|
|
|
template(java_lang_VersionProps, "java/lang/VersionProps") \
|
2012-06-18 12:29:21 -07:00
|
|
|
template(java_runtime_name_name, "java_runtime_name") \
|
2012-11-01 13:05:47 +01:00
|
|
|
template(java_runtime_version_name, "java_runtime_version") \
|
2012-06-18 12:29:21 -07:00
|
|
|
\
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
/* system initialization */ \
|
|
|
|
template(initPhase1_name, "initPhase1") \
|
|
|
|
template(initPhase2_name, "initPhase2") \
|
|
|
|
template(initPhase3_name, "initPhase3") \
|
|
|
|
template(java_lang_reflect_module_init_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \
|
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
/* class file format tags */ \
|
|
|
|
template(tag_source_file, "SourceFile") \
|
|
|
|
template(tag_inner_classes, "InnerClasses") \
|
|
|
|
template(tag_constant_value, "ConstantValue") \
|
|
|
|
template(tag_code, "Code") \
|
|
|
|
template(tag_exceptions, "Exceptions") \
|
|
|
|
template(tag_line_number_table, "LineNumberTable") \
|
|
|
|
template(tag_local_variable_table, "LocalVariableTable") \
|
|
|
|
template(tag_local_variable_type_table, "LocalVariableTypeTable") \
|
2013-01-08 14:01:36 -05:00
|
|
|
template(tag_method_parameters, "MethodParameters") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(tag_stack_map_table, "StackMapTable") \
|
|
|
|
template(tag_synthetic, "Synthetic") \
|
|
|
|
template(tag_deprecated, "Deprecated") \
|
|
|
|
template(tag_source_debug_extension, "SourceDebugExtension") \
|
|
|
|
template(tag_signature, "Signature") \
|
|
|
|
template(tag_runtime_visible_annotations, "RuntimeVisibleAnnotations") \
|
|
|
|
template(tag_runtime_invisible_annotations, "RuntimeInvisibleAnnotations") \
|
|
|
|
template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations") \
|
|
|
|
template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations") \
|
|
|
|
template(tag_annotation_default, "AnnotationDefault") \
|
2012-12-20 10:22:19 +01:00
|
|
|
template(tag_runtime_visible_type_annotations, "RuntimeVisibleTypeAnnotations") \
|
|
|
|
template(tag_runtime_invisible_type_annotations, "RuntimeInvisibleTypeAnnotations") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(tag_enclosing_method, "EnclosingMethod") \
|
2010-12-03 15:53:57 -08:00
|
|
|
template(tag_bootstrap_methods, "BootstrapMethods") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
/* exception klasses: at least all exceptions thrown by the VM have entries here */ \
|
|
|
|
template(java_lang_ArithmeticException, "java/lang/ArithmeticException") \
|
|
|
|
template(java_lang_ArrayIndexOutOfBoundsException, "java/lang/ArrayIndexOutOfBoundsException") \
|
|
|
|
template(java_lang_ArrayStoreException, "java/lang/ArrayStoreException") \
|
|
|
|
template(java_lang_ClassCastException, "java/lang/ClassCastException") \
|
|
|
|
template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \
|
|
|
|
template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \
|
|
|
|
template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \
|
|
|
|
template(java_lang_IllegalArgumentException, "java/lang/IllegalArgumentException") \
|
2010-05-01 02:42:18 -07:00
|
|
|
template(java_lang_IllegalStateException, "java/lang/IllegalStateException") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \
|
|
|
|
template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \
|
|
|
|
template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \
|
|
|
|
template(java_lang_InstantiationException, "java/lang/InstantiationException") \
|
|
|
|
template(java_lang_InstantiationError, "java/lang/InstantiationError") \
|
|
|
|
template(java_lang_InterruptedException, "java/lang/InterruptedException") \
|
2011-06-01 23:25:20 -07:00
|
|
|
template(java_lang_BootstrapMethodError, "java/lang/BootstrapMethodError") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_LinkageError, "java/lang/LinkageError") \
|
|
|
|
template(java_lang_NegativeArraySizeException, "java/lang/NegativeArraySizeException") \
|
|
|
|
template(java_lang_NoSuchFieldException, "java/lang/NoSuchFieldException") \
|
|
|
|
template(java_lang_NoSuchMethodException, "java/lang/NoSuchMethodException") \
|
|
|
|
template(java_lang_NullPointerException, "java/lang/NullPointerException") \
|
|
|
|
template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\
|
2012-08-07 14:32:08 -07:00
|
|
|
template(java_lang_UnsupportedOperationException, "java/lang/UnsupportedOperationException") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_InvalidClassException, "java/lang/InvalidClassException") \
|
|
|
|
template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \
|
|
|
|
template(java_lang_Exception, "java/lang/Exception") \
|
|
|
|
template(java_lang_RuntimeException, "java/lang/RuntimeException") \
|
|
|
|
template(java_io_IOException, "java/io/IOException") \
|
|
|
|
template(java_security_PrivilegedActionException, "java/security/PrivilegedActionException") \
|
|
|
|
\
|
|
|
|
/* error klasses: at least all errors thrown by the VM have entries here */ \
|
|
|
|
template(java_lang_AbstractMethodError, "java/lang/AbstractMethodError") \
|
|
|
|
template(java_lang_ClassCircularityError, "java/lang/ClassCircularityError") \
|
|
|
|
template(java_lang_ClassFormatError, "java/lang/ClassFormatError") \
|
|
|
|
template(java_lang_UnsupportedClassVersionError, "java/lang/UnsupportedClassVersionError") \
|
|
|
|
template(java_lang_Error, "java/lang/Error") \
|
|
|
|
template(java_lang_ExceptionInInitializerError, "java/lang/ExceptionInInitializerError") \
|
|
|
|
template(java_lang_IllegalAccessError, "java/lang/IllegalAccessError") \
|
|
|
|
template(java_lang_IncompatibleClassChangeError, "java/lang/IncompatibleClassChangeError") \
|
|
|
|
template(java_lang_InternalError, "java/lang/InternalError") \
|
|
|
|
template(java_lang_NoClassDefFoundError, "java/lang/NoClassDefFoundError") \
|
|
|
|
template(java_lang_NoSuchFieldError, "java/lang/NoSuchFieldError") \
|
|
|
|
template(java_lang_NoSuchMethodError, "java/lang/NoSuchMethodError") \
|
|
|
|
template(java_lang_OutOfMemoryError, "java/lang/OutOfMemoryError") \
|
|
|
|
template(java_lang_UnsatisfiedLinkError, "java/lang/UnsatisfiedLinkError") \
|
|
|
|
template(java_lang_VerifyError, "java/lang/VerifyError") \
|
|
|
|
template(java_lang_SecurityException, "java/lang/SecurityException") \
|
|
|
|
template(java_lang_VirtualMachineError, "java/lang/VirtualMachineError") \
|
|
|
|
template(java_lang_StackOverflowError, "java/lang/StackOverflowError") \
|
|
|
|
template(java_lang_StackTraceElement, "java/lang/StackTraceElement") \
|
2013-01-14 15:17:47 +01:00
|
|
|
\
|
|
|
|
/* Concurrency support */ \
|
2015-10-29 14:08:19 +03:00
|
|
|
template(java_util_concurrent_locks_AbstractOwnableSynchronizer, "java/util/concurrent/locks/AbstractOwnableSynchronizer") \
|
|
|
|
template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \
|
|
|
|
template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \
|
|
|
|
template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \
|
|
|
|
template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \
|
2015-11-24 11:49:44 +00:00
|
|
|
template(jdk_internal_vm_annotation_Contended_signature, "Ljdk/internal/vm/annotation/Contended;") \
|
2015-12-11 09:07:07 -08:00
|
|
|
template(jdk_internal_vm_annotation_ReservedStackAccess_signature, "Ljdk/internal/vm/annotation/ReservedStackAccess;") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
/* class symbols needed by intrinsics */ \
|
|
|
|
VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
|
|
|
|
\
|
|
|
|
/* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \
|
|
|
|
\
|
|
|
|
template(sun_reflect_FieldInfo, "sun/reflect/FieldInfo") \
|
|
|
|
template(sun_reflect_MethodInfo, "sun/reflect/MethodInfo") \
|
|
|
|
template(sun_reflect_MagicAccessorImpl, "sun/reflect/MagicAccessorImpl") \
|
|
|
|
template(sun_reflect_MethodAccessorImpl, "sun/reflect/MethodAccessorImpl") \
|
|
|
|
template(sun_reflect_ConstructorAccessorImpl, "sun/reflect/ConstructorAccessorImpl") \
|
|
|
|
template(sun_reflect_SerializationConstructorAccessorImpl, "sun/reflect/SerializationConstructorAccessorImpl") \
|
|
|
|
template(sun_reflect_DelegatingClassLoader, "sun/reflect/DelegatingClassLoader") \
|
|
|
|
template(sun_reflect_Reflection, "sun/reflect/Reflection") \
|
2013-03-25 17:13:26 -07:00
|
|
|
template(sun_reflect_CallerSensitive, "sun/reflect/CallerSensitive") \
|
|
|
|
template(sun_reflect_CallerSensitive_signature, "Lsun/reflect/CallerSensitive;") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(checkedExceptions_name, "checkedExceptions") \
|
|
|
|
template(clazz_name, "clazz") \
|
|
|
|
template(exceptionTypes_name, "exceptionTypes") \
|
|
|
|
template(modifiers_name, "modifiers") \
|
|
|
|
template(newConstructor_name, "newConstructor") \
|
|
|
|
template(newConstructor_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Constructor;") \
|
|
|
|
template(newField_name, "newField") \
|
|
|
|
template(newField_signature, "(Lsun/reflect/FieldInfo;)Ljava/lang/reflect/Field;") \
|
|
|
|
template(newMethod_name, "newMethod") \
|
|
|
|
template(newMethod_signature, "(Lsun/reflect/MethodInfo;)Ljava/lang/reflect/Method;") \
|
2012-07-24 10:51:00 -07:00
|
|
|
template(invokeBasic_name, "invokeBasic") \
|
|
|
|
template(linkToVirtual_name, "linkToVirtual") \
|
|
|
|
template(linkToStatic_name, "linkToStatic") \
|
|
|
|
template(linkToSpecial_name, "linkToSpecial") \
|
|
|
|
template(linkToInterface_name, "linkToInterface") \
|
|
|
|
template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \
|
2010-05-01 02:42:18 -07:00
|
|
|
template(star_name, "*") /*not really a name*/ \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(invoke_name, "invoke") \
|
|
|
|
template(override_name, "override") \
|
|
|
|
template(parameterTypes_name, "parameterTypes") \
|
|
|
|
template(returnType_name, "returnType") \
|
|
|
|
template(signature_name, "signature") \
|
|
|
|
template(slot_name, "slot") \
|
|
|
|
\
|
|
|
|
/* Support for annotations (JDK 1.5 and above) */ \
|
|
|
|
\
|
|
|
|
template(annotations_name, "annotations") \
|
2013-01-08 14:01:36 -05:00
|
|
|
template(index_name, "index") \
|
|
|
|
template(executable_name, "executable") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(parameter_annotations_name, "parameterAnnotations") \
|
|
|
|
template(annotation_default_name, "annotationDefault") \
|
|
|
|
template(sun_reflect_ConstantPool, "sun/reflect/ConstantPool") \
|
6964458: Reimplement class meta-data storage to use native memory
Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Tom Rodriguez <tom.rodriguez@oracle.com>
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
2012-09-01 13:25:18 -04:00
|
|
|
template(ConstantPool_name, "constantPoolOop") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(sun_reflect_UnsafeStaticFieldAccessorImpl, "sun/reflect/UnsafeStaticFieldAccessorImpl")\
|
|
|
|
template(base_name, "base") \
|
2012-12-20 10:22:19 +01:00
|
|
|
/* Type Annotations (JDK 8 and above) */ \
|
|
|
|
template(type_annotations_name, "typeAnnotations") \
|
|
|
|
\
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
/* Intrinsic Annotation (JDK 9 and above) */ \
|
|
|
|
template(jdk_internal_HotSpotIntrinsicCandidate_signature, "Ljdk/internal/HotSpotIntrinsicCandidate;") \
|
2015-12-03 11:18:34 +01:00
|
|
|
template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
|
|
|
|
template(jdk_internal_vm_annotation_DontInline_signature, "Ljdk/internal/vm/annotation/DontInline;") \
|
|
|
|
template(jdk_internal_vm_annotation_Stable_signature, "Ljdk/internal/vm/annotation/Stable;") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
2009-04-08 10:56:49 -07:00
|
|
|
/* Support for JSR 292 & invokedynamic (JDK 1.7 and above) */ \
|
2011-03-11 22:34:57 -08:00
|
|
|
template(java_lang_invoke_CallSite, "java/lang/invoke/CallSite") \
|
2011-08-16 04:14:05 -07:00
|
|
|
template(java_lang_invoke_ConstantCallSite, "java/lang/invoke/ConstantCallSite") \
|
2013-08-06 16:33:59 -07:00
|
|
|
template(java_lang_invoke_DirectMethodHandle, "java/lang/invoke/DirectMethodHandle") \
|
2011-08-16 04:14:05 -07:00
|
|
|
template(java_lang_invoke_MutableCallSite, "java/lang/invoke/MutableCallSite") \
|
|
|
|
template(java_lang_invoke_VolatileCallSite, "java/lang/invoke/VolatileCallSite") \
|
2011-03-11 22:34:57 -08:00
|
|
|
template(java_lang_invoke_MethodHandle, "java/lang/invoke/MethodHandle") \
|
2016-03-24 11:21:49 +01:00
|
|
|
template(java_lang_invoke_VarHandle, "java/lang/invoke/VarHandle") \
|
2011-03-11 22:34:57 -08:00
|
|
|
template(java_lang_invoke_MethodType, "java/lang/invoke/MethodType") \
|
|
|
|
template(java_lang_invoke_MethodType_signature, "Ljava/lang/invoke/MethodType;") \
|
2012-07-24 10:51:00 -07:00
|
|
|
template(java_lang_invoke_MemberName_signature, "Ljava/lang/invoke/MemberName;") \
|
|
|
|
template(java_lang_invoke_LambdaForm_signature, "Ljava/lang/invoke/LambdaForm;") \
|
2011-03-11 22:34:57 -08:00
|
|
|
template(java_lang_invoke_MethodHandle_signature, "Ljava/lang/invoke/MethodHandle;") \
|
2009-04-08 10:56:49 -07:00
|
|
|
/* internal classes known only to the JVM: */ \
|
2011-03-11 22:34:57 -08:00
|
|
|
template(java_lang_invoke_MemberName, "java/lang/invoke/MemberName") \
|
|
|
|
template(java_lang_invoke_MethodHandleNatives, "java/lang/invoke/MethodHandleNatives") \
|
2015-05-15 19:23:11 +03:00
|
|
|
template(java_lang_invoke_MethodHandleNatives_CallSiteContext, "java/lang/invoke/MethodHandleNatives$CallSiteContext") \
|
2012-07-24 10:51:00 -07:00
|
|
|
template(java_lang_invoke_LambdaForm, "java/lang/invoke/LambdaForm") \
|
2015-06-11 14:19:40 +03:00
|
|
|
template(java_lang_invoke_InjectedProfile_signature, "Ljava/lang/invoke/InjectedProfile;") \
|
2012-07-24 10:51:00 -07:00
|
|
|
template(java_lang_invoke_LambdaForm_Compiled_signature, "Ljava/lang/invoke/LambdaForm$Compiled;") \
|
|
|
|
template(java_lang_invoke_LambdaForm_Hidden_signature, "Ljava/lang/invoke/LambdaForm$Hidden;") \
|
2015-05-15 19:23:11 +03:00
|
|
|
template(java_lang_invoke_MethodHandleNatives_CallSiteContext_signature, "Ljava/lang/invoke/MethodHandleNatives$CallSiteContext;") \
|
2011-03-11 22:34:57 -08:00
|
|
|
/* internal up-calls made only by the JVM, via class sun.invoke.MethodHandleNatives: */ \
|
2010-05-01 02:42:18 -07:00
|
|
|
template(findMethodHandleType_name, "findMethodHandleType") \
|
2011-03-11 22:34:57 -08:00
|
|
|
template(findMethodHandleType_signature, "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;") \
|
2010-06-09 18:50:45 -07:00
|
|
|
template(linkMethodHandleConstant_name, "linkMethodHandleConstant") \
|
2011-03-11 22:34:57 -08:00
|
|
|
template(linkMethodHandleConstant_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;") \
|
2012-07-24 10:51:00 -07:00
|
|
|
template(linkMethod_name, "linkMethod") \
|
|
|
|
template(linkMethod_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \
|
|
|
|
template(linkCallSite_name, "linkCallSite") \
|
|
|
|
template(linkCallSite_signature, "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \
|
2011-09-01 01:31:25 -07:00
|
|
|
template(setTargetNormal_name, "setTargetNormal") \
|
|
|
|
template(setTargetVolatile_name, "setTargetVolatile") \
|
|
|
|
template(setTarget_signature, "(Ljava/lang/invoke/MethodHandle;)V") \
|
2015-04-17 18:17:06 +03:00
|
|
|
template(DEFAULT_CONTEXT_name, "DEFAULT_CONTEXT") \
|
2011-09-10 17:29:02 -07:00
|
|
|
NOT_LP64( do_alias(intptr_signature, int_signature) ) \
|
|
|
|
LP64_ONLY( do_alias(intptr_signature, long_signature) ) \
|
2015-10-08 12:49:30 -10:00
|
|
|
\
|
|
|
|
/* Support for JVMCI */ \
|
|
|
|
JVMCI_VM_SYMBOLS_DO(template, do_alias) \
|
2015-01-29 10:25:59 -08:00
|
|
|
\
|
2015-11-24 14:59:17 -08:00
|
|
|
template(java_lang_StackWalker, "java/lang/StackWalker") \
|
|
|
|
template(java_lang_StackFrameInfo, "java/lang/StackFrameInfo") \
|
|
|
|
template(java_lang_LiveStackFrameInfo, "java/lang/LiveStackFrameInfo") \
|
|
|
|
template(java_lang_StackStreamFactory_AbstractStackWalker, "java/lang/StackStreamFactory$AbstractStackWalker") \
|
|
|
|
template(doStackWalk_signature, "(JIIII)Ljava/lang/Object;") \
|
|
|
|
template(asPrimitive_name, "asPrimitive") \
|
|
|
|
template(asPrimitive_int_signature, "(I)Ljava/lang/LiveStackFrame$PrimitiveValue;") \
|
|
|
|
template(asPrimitive_long_signature, "(J)Ljava/lang/LiveStackFrame$PrimitiveValue;") \
|
|
|
|
template(asPrimitive_short_signature, "(S)Ljava/lang/LiveStackFrame$PrimitiveValue;") \
|
|
|
|
template(asPrimitive_byte_signature, "(B)Ljava/lang/LiveStackFrame$PrimitiveValue;") \
|
|
|
|
template(asPrimitive_char_signature, "(C)Ljava/lang/LiveStackFrame$PrimitiveValue;") \
|
|
|
|
template(asPrimitive_float_signature, "(F)Ljava/lang/LiveStackFrame$PrimitiveValue;") \
|
|
|
|
template(asPrimitive_double_signature, "(D)Ljava/lang/LiveStackFrame$PrimitiveValue;") \
|
|
|
|
template(asPrimitive_boolean_signature, "(Z)Ljava/lang/LiveStackFrame$PrimitiveValue;") \
|
|
|
|
\
|
2009-04-08 10:56:49 -07:00
|
|
|
/* common method and field names */ \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(object_initializer_name, "<init>") \
|
|
|
|
template(class_initializer_name, "<clinit>") \
|
|
|
|
template(println_name, "println") \
|
|
|
|
template(printStackTrace_name, "printStackTrace") \
|
|
|
|
template(main_name, "main") \
|
|
|
|
template(name_name, "name") \
|
|
|
|
template(priority_name, "priority") \
|
|
|
|
template(stillborn_name, "stillborn") \
|
|
|
|
template(group_name, "group") \
|
|
|
|
template(daemon_name, "daemon") \
|
|
|
|
template(eetop_name, "eetop") \
|
|
|
|
template(thread_status_name, "threadStatus") \
|
|
|
|
template(run_method_name, "run") \
|
|
|
|
template(exit_method_name, "exit") \
|
|
|
|
template(add_method_name, "add") \
|
2012-02-09 00:51:47 -08:00
|
|
|
template(remove_method_name, "remove") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(parent_name, "parent") \
|
|
|
|
template(threads_name, "threads") \
|
|
|
|
template(groups_name, "groups") \
|
|
|
|
template(maxPriority_name, "maxPriority") \
|
|
|
|
template(destroyed_name, "destroyed") \
|
|
|
|
template(vmAllowSuspension_name, "vmAllowSuspension") \
|
|
|
|
template(nthreads_name, "nthreads") \
|
|
|
|
template(ngroups_name, "ngroups") \
|
|
|
|
template(shutdown_method_name, "shutdown") \
|
|
|
|
template(finalize_method_name, "finalize") \
|
|
|
|
template(reference_lock_name, "lock") \
|
|
|
|
template(reference_discovered_name, "discovered") \
|
2012-01-09 10:27:24 +01:00
|
|
|
template(run_finalization_name, "runFinalization") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(run_finalizers_on_exit_name, "runFinalizersOnExit") \
|
|
|
|
template(dispatchUncaughtException_name, "dispatchUncaughtException") \
|
|
|
|
template(loadClass_name, "loadClass") \
|
|
|
|
template(loadClassInternal_name, "loadClassInternal") \
|
|
|
|
template(get_name, "get") \
|
|
|
|
template(put_name, "put") \
|
|
|
|
template(type_name, "type") \
|
|
|
|
template(findNative_name, "findNative") \
|
|
|
|
template(deadChild_name, "deadChild") \
|
|
|
|
template(getFromClass_name, "getFromClass") \
|
|
|
|
template(dispatch_name, "dispatch") \
|
|
|
|
template(getSystemClassLoader_name, "getSystemClassLoader") \
|
|
|
|
template(fillInStackTrace_name, "fillInStackTrace") \
|
|
|
|
template(getCause_name, "getCause") \
|
|
|
|
template(initCause_name, "initCause") \
|
2016-03-10 13:43:47 -05:00
|
|
|
template(depth_name, "depth") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(setProperty_name, "setProperty") \
|
|
|
|
template(getProperty_name, "getProperty") \
|
|
|
|
template(context_name, "context") \
|
|
|
|
template(privilegedContext_name, "privilegedContext") \
|
|
|
|
template(contextClassLoader_name, "contextClassLoader") \
|
|
|
|
template(inheritedAccessControlContext_name, "inheritedAccessControlContext") \
|
|
|
|
template(isPrivileged_name, "isPrivileged") \
|
2013-04-05 10:18:36 -04:00
|
|
|
template(isAuthorized_name, "isAuthorized") \
|
2013-03-25 17:13:26 -07:00
|
|
|
template(getClassContext_name, "getClassContext") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(wait_name, "wait") \
|
|
|
|
template(checkPackageAccess_name, "checkPackageAccess") \
|
|
|
|
template(stackSize_name, "stackSize") \
|
|
|
|
template(thread_id_name, "tid") \
|
|
|
|
template(newInstance0_name, "newInstance0") \
|
|
|
|
template(limit_name, "limit") \
|
2013-08-06 16:33:59 -07:00
|
|
|
template(member_name, "member") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(forName_name, "forName") \
|
|
|
|
template(forName0_name, "forName0") \
|
|
|
|
template(isJavaIdentifierStart_name, "isJavaIdentifierStart") \
|
|
|
|
template(isJavaIdentifierPart_name, "isJavaIdentifierPart") \
|
|
|
|
template(exclusive_owner_thread_name, "exclusiveOwnerThread") \
|
|
|
|
template(park_blocker_name, "parkBlocker") \
|
|
|
|
template(park_event_name, "nativeParkEventPointer") \
|
2007-12-05 09:01:00 -08:00
|
|
|
template(cache_field_name, "cache") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(value_name, "value") \
|
2012-05-14 09:36:00 -07:00
|
|
|
template(hash_name, "hash") \
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
template(coder_name, "coder") \
|
|
|
|
template(compact_strings_name, "COMPACT_STRINGS") \
|
2009-05-06 00:27:52 -07:00
|
|
|
template(numberOfLeadingZeros_name, "numberOfLeadingZeros") \
|
|
|
|
template(numberOfTrailingZeros_name, "numberOfTrailingZeros") \
|
2009-03-13 11:35:17 -07:00
|
|
|
template(bitCount_name, "bitCount") \
|
2009-03-30 18:19:31 -07:00
|
|
|
template(profile_name, "profile") \
|
2009-03-31 14:07:08 -07:00
|
|
|
template(equals_name, "equals") \
|
2015-10-08 12:49:30 -10:00
|
|
|
template(length_name, "length") \
|
2009-04-21 23:21:04 -07:00
|
|
|
template(target_name, "target") \
|
2009-04-08 10:56:49 -07:00
|
|
|
template(toString_name, "toString") \
|
|
|
|
template(values_name, "values") \
|
|
|
|
template(receiver_name, "receiver") \
|
|
|
|
template(vmtarget_name, "vmtarget") \
|
6964458: Reimplement class meta-data storage to use native memory
Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Tom Rodriguez <tom.rodriguez@oracle.com>
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
2012-09-01 13:25:18 -04:00
|
|
|
template(next_target_name, "next_target") \
|
|
|
|
template(vmloader_name, "vmloader") \
|
2009-04-08 10:56:49 -07:00
|
|
|
template(vmindex_name, "vmindex") \
|
2012-07-24 10:51:00 -07:00
|
|
|
template(vmcount_name, "vmcount") \
|
|
|
|
template(vmentry_name, "vmentry") \
|
2009-04-08 10:56:49 -07:00
|
|
|
template(flags_name, "flags") \
|
|
|
|
template(rtype_name, "rtype") \
|
|
|
|
template(ptypes_name, "ptypes") \
|
|
|
|
template(form_name, "form") \
|
2012-07-24 10:51:00 -07:00
|
|
|
template(basicType_name, "basicType") \
|
2009-11-12 09:24:21 -08:00
|
|
|
template(append_name, "append") \
|
2011-09-10 17:29:02 -07:00
|
|
|
template(klass_name, "klass") \
|
|
|
|
template(array_klass_name, "array_klass") \
|
2015-11-24 14:59:17 -08:00
|
|
|
template(declaringClass_name, "declaringClass") \
|
|
|
|
template(memberName_name, "memberName") \
|
|
|
|
template(mid_name, "mid") \
|
|
|
|
template(cpref_name, "cpref") \
|
|
|
|
template(version_name, "version") \
|
|
|
|
template(bci_name, "bci") \
|
|
|
|
template(methodName_name, "methodName") \
|
|
|
|
template(fileName_name, "fileName") \
|
|
|
|
template(lineNumber_name, "lineNumber") \
|
|
|
|
template(monitors_name, "monitors") \
|
|
|
|
template(locals_name, "locals") \
|
|
|
|
template(operands_name, "operands") \
|
2011-09-10 17:29:02 -07:00
|
|
|
template(oop_size_name, "oop_size") \
|
|
|
|
template(static_oop_field_count_name, "static_oop_field_count") \
|
2013-05-22 14:37:49 -04:00
|
|
|
template(protection_domain_name, "protection_domain") \
|
|
|
|
template(signers_name, "signers_name") \
|
6964458: Reimplement class meta-data storage to use native memory
Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Tom Rodriguez <tom.rodriguez@oracle.com>
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
2012-09-01 13:25:18 -04:00
|
|
|
template(loader_data_name, "loader_data") \
|
2015-05-15 19:23:11 +03:00
|
|
|
template(vmdependencies_name, "vmdependencies") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(loader_name, "loader") \
|
|
|
|
template(module_name, "module") \
|
|
|
|
template(getModule_name, "getModule") \
|
|
|
|
template(addReads_name, "addReads") \
|
|
|
|
template(addReads_signature, "(Ljava/lang/reflect/Module;Ljava/lang/reflect/Module;)V") \
|
2014-08-12 17:29:00 -07:00
|
|
|
template(input_stream_void_signature, "(Ljava/io/InputStream;)V") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(definePackage_name, "definePackage") \
|
|
|
|
template(definePackage_signature, "(Ljava/lang/String;Ljava/lang/reflect/Module;)Ljava/lang/Package;") \
|
|
|
|
template(defineOrCheckPackage_name, "defineOrCheckPackage") \
|
|
|
|
template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
|
|
|
|
template(fileToEncodedURL_name, "fileToEncodedURL") \
|
|
|
|
template(fileToEncodedURL_signature, "(Ljava/io/File;)Ljava/net/URL;") \
|
2014-08-12 17:29:00 -07:00
|
|
|
template(getProtectionDomain_name, "getProtectionDomain") \
|
|
|
|
template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
|
|
|
|
template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(module_entry_name, "module_entry") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
/* name symbols needed by intrinsics */ \
|
|
|
|
VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
|
|
|
|
\
|
|
|
|
/* common signatures names */ \
|
|
|
|
template(void_method_signature, "()V") \
|
2010-01-04 15:52:40 +01:00
|
|
|
template(void_boolean_signature, "()Z") \
|
|
|
|
template(void_byte_signature, "()B") \
|
|
|
|
template(void_char_signature, "()C") \
|
|
|
|
template(void_short_signature, "()S") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(void_int_signature, "()I") \
|
|
|
|
template(void_long_signature, "()J") \
|
2010-01-04 15:52:40 +01:00
|
|
|
template(void_float_signature, "()F") \
|
|
|
|
template(void_double_signature, "()D") \
|
2015-10-08 12:49:30 -10:00
|
|
|
template(bool_void_signature, "(Z)V") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(int_void_signature, "(I)V") \
|
|
|
|
template(int_int_signature, "(I)I") \
|
2010-04-26 11:27:21 -07:00
|
|
|
template(char_char_signature, "(C)C") \
|
|
|
|
template(short_short_signature, "(S)S") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(int_bool_signature, "(I)Z") \
|
|
|
|
template(float_int_signature, "(F)I") \
|
|
|
|
template(double_long_signature, "(D)J") \
|
|
|
|
template(double_double_signature, "(D)D") \
|
|
|
|
template(int_float_signature, "(I)F") \
|
2009-03-13 11:35:17 -07:00
|
|
|
template(long_int_signature, "(J)I") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(long_long_signature, "(J)J") \
|
|
|
|
template(long_double_signature, "(J)D") \
|
|
|
|
template(byte_signature, "B") \
|
|
|
|
template(char_signature, "C") \
|
|
|
|
template(double_signature, "D") \
|
|
|
|
template(float_signature, "F") \
|
|
|
|
template(int_signature, "I") \
|
|
|
|
template(long_signature, "J") \
|
|
|
|
template(short_signature, "S") \
|
|
|
|
template(bool_signature, "Z") \
|
|
|
|
template(void_signature, "V") \
|
|
|
|
template(byte_array_signature, "[B") \
|
|
|
|
template(char_array_signature, "[C") \
|
2011-05-06 16:33:13 -07:00
|
|
|
template(int_array_signature, "[I") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(object_void_signature, "(Ljava/lang/Object;)V") \
|
|
|
|
template(object_int_signature, "(Ljava/lang/Object;)I") \
|
|
|
|
template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
|
2014-10-31 16:51:57 -07:00
|
|
|
template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(string_void_signature, "(Ljava/lang/String;)V") \
|
|
|
|
template(string_int_signature, "(Ljava/lang/String;)I") \
|
|
|
|
template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
|
|
|
|
template(void_throwable_signature, "()Ljava/lang/Throwable;") \
|
|
|
|
template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
|
|
|
|
template(class_void_signature, "(Ljava/lang/Class;)V") \
|
|
|
|
template(class_int_signature, "(Ljava/lang/Class;)I") \
|
2012-03-06 12:36:59 +01:00
|
|
|
template(class_long_signature, "(Ljava/lang/Class;)J") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
|
|
|
|
template(throwable_string_void_signature, "(Ljava/lang/Throwable;Ljava/lang/String;)V") \
|
|
|
|
template(string_array_void_signature, "([Ljava/lang/String;)V") \
|
|
|
|
template(string_array_string_array_void_signature, "([Ljava/lang/String;[Ljava/lang/String;)V") \
|
|
|
|
template(thread_throwable_void_signature, "(Ljava/lang/Thread;Ljava/lang/Throwable;)V") \
|
|
|
|
template(thread_void_signature, "(Ljava/lang/Thread;)V") \
|
|
|
|
template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
|
|
|
|
template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
|
|
|
|
template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
|
|
|
|
template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
|
|
|
|
template(string_string_string_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \
|
|
|
|
template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
|
|
|
|
template(classloader_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)J") \
|
|
|
|
template(byte_array_void_signature, "([B)V") \
|
|
|
|
template(char_array_void_signature, "([C)V") \
|
|
|
|
template(int_int_void_signature, "(II)V") \
|
|
|
|
template(long_long_void_signature, "(JJ)V") \
|
|
|
|
template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
|
|
|
|
template(void_object_signature, "()Ljava/lang/Object;") \
|
|
|
|
template(void_class_signature, "()Ljava/lang/Class;") \
|
2013-03-25 17:13:26 -07:00
|
|
|
template(void_class_array_signature, "()[Ljava/lang/Class;") \
|
2010-05-01 02:42:18 -07:00
|
|
|
template(void_string_signature, "()Ljava/lang/String;") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(void_module_signature, "()Ljava/lang/reflect/Module;") \
|
2010-05-01 02:42:18 -07:00
|
|
|
template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
|
|
|
|
template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
|
2007-12-01 00:00:00 +00:00
|
|
|
template(exception_void_signature, "(Ljava/lang/Exception;)V") \
|
|
|
|
template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
|
|
|
|
template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
|
|
|
|
template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
|
|
|
|
template(thread_signature, "Ljava/lang/Thread;") \
|
|
|
|
template(thread_array_signature, "[Ljava/lang/Thread;") \
|
|
|
|
template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
|
|
|
|
template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
|
|
|
|
template(class_array_signature, "[Ljava/lang/Class;") \
|
|
|
|
template(classloader_signature, "Ljava/lang/ClassLoader;") \
|
|
|
|
template(object_signature, "Ljava/lang/Object;") \
|
2015-11-24 14:59:17 -08:00
|
|
|
template(object_array_signature, "[Ljava/lang/Object;") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(class_signature, "Ljava/lang/Class;") \
|
|
|
|
template(string_signature, "Ljava/lang/String;") \
|
|
|
|
template(reference_signature, "Ljava/lang/ref/Reference;") \
|
2015-04-17 18:17:06 +03:00
|
|
|
template(sun_misc_Cleaner_signature, "Lsun/misc/Cleaner;") \
|
2013-01-08 14:01:36 -05:00
|
|
|
template(executable_signature, "Ljava/lang/reflect/Executable;") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(module_signature, "Ljava/lang/reflect/Module;") \
|
2009-01-05 13:44:03 -05:00
|
|
|
template(concurrenthashmap_signature, "Ljava/util/concurrent/ConcurrentHashMap;") \
|
2009-11-12 09:24:21 -08:00
|
|
|
template(String_StringBuilder_signature, "(Ljava/lang/String;)Ljava/lang/StringBuilder;") \
|
|
|
|
template(int_StringBuilder_signature, "(I)Ljava/lang/StringBuilder;") \
|
|
|
|
template(char_StringBuilder_signature, "(C)Ljava/lang/StringBuilder;") \
|
|
|
|
template(String_StringBuffer_signature, "(Ljava/lang/String;)Ljava/lang/StringBuffer;") \
|
|
|
|
template(int_StringBuffer_signature, "(I)Ljava/lang/StringBuffer;") \
|
|
|
|
template(char_StringBuffer_signature, "(C)Ljava/lang/StringBuffer;") \
|
|
|
|
template(int_String_signature, "(I)Ljava/lang/String;") \
|
2014-03-18 13:45:27 -04:00
|
|
|
template(codesource_permissioncollection_signature, "(Ljava/security/CodeSource;Ljava/security/PermissionCollection;)V") \
|
2007-12-01 00:00:00 +00:00
|
|
|
/* signature symbols needed by intrinsics */ \
|
|
|
|
VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE) \
|
|
|
|
\
|
|
|
|
/* symbol aliases needed by intrinsics */ \
|
|
|
|
VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias) \
|
|
|
|
\
|
|
|
|
/* returned by the C1 compiler in case there's not enough memory to allocate a new symbol*/ \
|
2011-01-27 16:11:27 -08:00
|
|
|
template(dummy_symbol, "illegal symbol") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
/* used by ClassFormatError when class name is not known yet */ \
|
|
|
|
template(unknown_class_name, "<Unknown>") \
|
|
|
|
\
|
2009-01-05 13:44:03 -05:00
|
|
|
/* used to identify class loaders handling parallel class loading */ \
|
2009-03-20 11:23:24 -04:00
|
|
|
template(parallelCapable_name, "parallelLockMap") \
|
2009-01-05 13:44:03 -05:00
|
|
|
\
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
/* used to return a class loader's unnamed module */ \
|
|
|
|
template(unnamedModule_name, "unnamedModule") \
|
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
/* JVM monitoring and management support */ \
|
|
|
|
template(java_lang_StackTraceElement_array, "[Ljava/lang/StackTraceElement;") \
|
|
|
|
template(java_lang_management_ThreadState, "java/lang/management/ThreadState") \
|
|
|
|
template(java_lang_management_MemoryUsage, "java/lang/management/MemoryUsage") \
|
|
|
|
template(java_lang_management_ThreadInfo, "java/lang/management/ThreadInfo") \
|
|
|
|
template(sun_management_Sensor, "sun/management/Sensor") \
|
|
|
|
template(sun_management_Agent, "sun/management/Agent") \
|
2015-04-17 10:53:31 +02:00
|
|
|
template(com_sun_management_internal_DiagnosticCommandImpl, "com/sun/management/internal/DiagnosticCommandImpl") \
|
|
|
|
template(com_sun_management_internal_GarbageCollectorExtImpl,"com/sun/management/internal/GarbageCollectorExtImpl") \
|
2013-05-03 05:05:31 -07:00
|
|
|
template(sun_management_ManagementFactoryHelper, "sun/management/ManagementFactoryHelper") \
|
|
|
|
template(getDiagnosticCommandMBean_name, "getDiagnosticCommandMBean") \
|
|
|
|
template(getDiagnosticCommandMBean_signature, "()Lcom/sun/management/DiagnosticCommandMBean;") \
|
2011-05-12 10:30:11 -07:00
|
|
|
template(getGcInfoBuilder_name, "getGcInfoBuilder") \
|
2015-04-17 10:53:31 +02:00
|
|
|
template(getGcInfoBuilder_signature, "()Lcom/sun/management/internal/GcInfoBuilder;") \
|
2011-05-12 10:30:11 -07:00
|
|
|
template(com_sun_management_GcInfo, "com/sun/management/GcInfo") \
|
2015-04-17 10:53:31 +02:00
|
|
|
template(com_sun_management_GcInfo_constructor_signature, "(Lcom/sun/management/internal/GcInfoBuilder;JJJ[Ljava/lang/management/MemoryUsage;[Ljava/lang/management/MemoryUsage;[Ljava/lang/Object;)V") \
|
2011-05-12 10:30:11 -07:00
|
|
|
template(createGCNotification_name, "createGCNotification") \
|
|
|
|
template(createGCNotification_signature, "(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sun/management/GcInfo;)V") \
|
2013-05-03 05:05:31 -07:00
|
|
|
template(createDiagnosticFrameworkNotification_name, "createDiagnosticFrameworkNotification") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(createMemoryPoolMBean_name, "createMemoryPoolMBean") \
|
|
|
|
template(createMemoryManagerMBean_name, "createMemoryManagerMBean") \
|
|
|
|
template(createGarbageCollectorMBean_name, "createGarbageCollectorMBean") \
|
|
|
|
template(createMemoryPoolMBean_signature, "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMBean;") \
|
|
|
|
template(createMemoryManagerMBean_signature, "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMBean;") \
|
|
|
|
template(createGarbageCollectorMBean_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMBean;") \
|
|
|
|
template(trigger_name, "trigger") \
|
|
|
|
template(clear_name, "clear") \
|
2015-04-17 18:17:06 +03:00
|
|
|
template(trigger_method_signature, "(ILjava/lang/management/MemoryUsage;)V") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(startAgent_name, "startAgent") \
|
2012-02-22 19:43:22 +04:00
|
|
|
template(startRemoteAgent_name, "startRemoteManagementAgent") \
|
|
|
|
template(startLocalAgent_name, "startLocalManagementAgent") \
|
|
|
|
template(stopRemoteAgent_name, "stopRemoteManagementAgent") \
|
2015-03-26 10:37:10 +01:00
|
|
|
template(getAgentStatus_name, "getManagementAgentStatus") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(java_lang_management_ThreadInfo_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;)V") \
|
|
|
|
template(java_lang_management_ThreadInfo_with_locks_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;[Ljava/lang/Object;[I[Ljava/lang/Object;)V") \
|
|
|
|
template(long_long_long_long_void_signature, "(JJJJ)V") \
|
2015-07-30 16:26:00 +03:00
|
|
|
template(finalizer_histogram_klass, "java/lang/ref/FinalizerHistogram") \
|
|
|
|
template(void_finalizer_histogram_entry_array_signature, "()[Ljava/lang/ref/FinalizerHistogram$Entry;") \
|
|
|
|
template(get_finalizer_histogram_name, "getFinalizerHistogram") \
|
|
|
|
template(finalizer_histogram_entry_name_field, "className") \
|
|
|
|
template(finalizer_histogram_entry_count_field, "instanceCount") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
template(java_lang_management_MemoryPoolMXBean, "java/lang/management/MemoryPoolMXBean") \
|
|
|
|
template(java_lang_management_MemoryManagerMXBean, "java/lang/management/MemoryManagerMXBean") \
|
|
|
|
template(java_lang_management_GarbageCollectorMXBean,"java/lang/management/GarbageCollectorMXBean") \
|
2011-05-12 10:30:11 -07:00
|
|
|
template(gcInfoBuilder_name, "gcInfoBuilder") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(createMemoryPool_name, "createMemoryPool") \
|
|
|
|
template(createMemoryManager_name, "createMemoryManager") \
|
|
|
|
template(createGarbageCollector_name, "createGarbageCollector") \
|
|
|
|
template(createMemoryPool_signature, "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMXBean;") \
|
|
|
|
template(createMemoryManager_signature, "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMXBean;") \
|
|
|
|
template(createGarbageCollector_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMXBean;") \
|
|
|
|
template(addThreadDumpForMonitors_name, "addThreadDumpForMonitors") \
|
|
|
|
template(addThreadDumpForSynchronizers_name, "addThreadDumpForSynchronizers") \
|
|
|
|
template(addThreadDumpForMonitors_signature, "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;[I)V") \
|
|
|
|
template(addThreadDumpForSynchronizers_signature, "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;)V") \
|
|
|
|
\
|
|
|
|
/* JVMTI/java.lang.instrument support and VM Attach mechanism */ \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(jdk_internal_module_Modules, "jdk/internal/module/Modules") \
|
2016-04-03 16:28:47 +01:00
|
|
|
template(jdk_internal_vm_VMSupport, "jdk/internal/vm/VMSupport") \
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Christian Tornqvist <christian.tornqvist@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Co-authored-by: Igor Ignatyev <igor.ignatyev@oracle.com>
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jiangli Zhou <jiangli.zhou@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: acorn, ccheung, coleenp, ctornqvi, dholmes, dsimms, gtriantafill, iklam, jiangli, mgronlun, mseledtsov, cjplummer, sspitsyn, stefank, twisti, hseigel, lfoltan, alanb, mchung, dfazunen
2016-03-17 19:04:01 +00:00
|
|
|
template(transformedByAgent_name, "transformedByAgent") \
|
|
|
|
template(transformedByAgent_signature, "(Ljava/lang/reflect/Module;)V") \
|
2007-12-01 00:00:00 +00:00
|
|
|
template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
|
|
|
|
do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
|
|
|
|
template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
|
|
|
|
template(serializePropertiesToByteArray_signature, "()[B") \
|
|
|
|
template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
|
|
|
|
template(classRedefinedCount_name, "classRedefinedCount") \
|
2014-06-19 14:49:33 -04:00
|
|
|
template(classLoader_name, "classLoader") \
|
2014-07-02 15:22:18 -04:00
|
|
|
template(componentType_name, "componentType") \
|
2012-03-06 12:36:59 +01:00
|
|
|
\
|
2015-05-05 12:33:57 -07:00
|
|
|
/* forEachRemaining support */ \
|
|
|
|
template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
|
|
|
|
\
|
2012-03-06 12:36:59 +01:00
|
|
|
/* trace signatures */ \
|
|
|
|
TRACE_TEMPLATES(template) \
|
|
|
|
\
|
2015-08-18 11:27:23 -07:00
|
|
|
/* extensions */ \
|
|
|
|
VM_SYMBOLS_DO_EXT(template, do_alias) \
|
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
/*end*/
|
|
|
|
|
|
|
|
// Here are all the intrinsics known to the runtime and the CI.
|
|
|
|
// Each intrinsic consists of a public enum name (like _hashCode),
|
|
|
|
// followed by a specification of its klass, name, and signature:
|
|
|
|
// template(<id>, <klass>, <name>, <sig>, <FCODE>)
|
|
|
|
//
|
|
|
|
// If you add an intrinsic here, you must also define its name
|
|
|
|
// and signature as members of the VM symbols. The VM symbols for
|
|
|
|
// the intrinsic name and signature may be defined above.
|
|
|
|
//
|
|
|
|
// Because the VM_SYMBOLS_DO macro makes reference to VM_INTRINSICS_DO,
|
|
|
|
// you can also define an intrinsic's name and/or signature locally to the
|
|
|
|
// intrinsic, if this makes sense. (It often does make sense.)
|
|
|
|
//
|
|
|
|
// For example:
|
|
|
|
// do_intrinsic(_foo, java_lang_Object, foo_name, foo_signature, F_xx)
|
|
|
|
// do_name( foo_name, "foo")
|
|
|
|
// do_signature(foo_signature, "()F")
|
|
|
|
// klass = vmSymbols::java_lang_Object()
|
|
|
|
// name = vmSymbols::foo_name()
|
|
|
|
// signature = vmSymbols::foo_signature()
|
|
|
|
//
|
|
|
|
// The name and/or signature might be a "well known" symbol
|
|
|
|
// like "equal" or "()I", in which case there will be no local
|
|
|
|
// re-definition of the symbol.
|
|
|
|
//
|
|
|
|
// The do_class, do_name, and do_signature calls are all used for the
|
|
|
|
// same purpose: Define yet another VM symbol. They could all be merged
|
|
|
|
// into a common 'do_symbol' call, but it seems useful to record our
|
|
|
|
// intentions here about kinds of symbols (class vs. name vs. signature).
|
|
|
|
//
|
|
|
|
// The F_xx is one of the Flags enum; see below.
|
|
|
|
//
|
|
|
|
// for Emacs: (let ((c-backslash-column 120) (c-backslash-max-column 120)) (c-backslash-region (point) (point-max) nil t))
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
//
|
|
|
|
//
|
|
|
|
// There are two types of intrinsic methods: (1) Library intrinsics and (2) bytecode intrinsics.
|
|
|
|
//
|
|
|
|
// (1) A library intrinsic method may be replaced with hand-crafted assembly code,
|
|
|
|
// with hand-crafted compiler IR, or with a combination of the two. The semantics
|
|
|
|
// of the replacement code may differ from the semantics of the replaced code.
|
|
|
|
//
|
|
|
|
// (2) Bytecode intrinsic methods are not replaced by special code, but they are
|
|
|
|
// treated in some other special way by the compiler. For example, the compiler
|
|
|
|
// may delay inlining for some String-related intrinsic methods (e.g., some methods
|
|
|
|
// defined in the StringBuilder and StringBuffer classes, see
|
|
|
|
// Compile::should_delay_string_inlining() for more details).
|
|
|
|
//
|
|
|
|
// Due to the difference between the semantics of an intrinsic method as defined
|
|
|
|
// in the (Java) source code and the semantics of the method as defined
|
|
|
|
// by the code in the VM, intrinsic methods must be explicitly marked.
|
|
|
|
//
|
|
|
|
// Intrinsic methods are marked by the jdk.internal.HotSpotIntrinsicCandidate
|
|
|
|
// annotation. If CheckIntrinsics is enabled, the VM performs the following
|
|
|
|
// checks when a class C is loaded: (1) all intrinsics defined by the VM for
|
|
|
|
// class C are present in the loaded class file and are marked;
|
2015-07-16 15:02:12 +02:00
|
|
|
// (2) an intrinsic is defined by the VM for all marked methods of class C;
|
|
|
|
// (3) check for orphan methods in class C (i.e., methods for which the VM
|
|
|
|
// declares an intrinsic but that are not declared for the loaded class C.
|
|
|
|
// Check (3) is available only in debug builds.
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
//
|
|
|
|
// If a mismatch is detected for a method, the VM behaves differently depending
|
|
|
|
// on the type of build. A fastdebug build exits and reports an error on a mismatch.
|
|
|
|
// A product build will not replace an unmarked library intrinsic method with
|
|
|
|
// hand-crafted code, that is, unmarked library intrinsics are treated as ordinary
|
|
|
|
// methods in a product build. The special treatment of a bytecode intrinsic method
|
|
|
|
// persists even if the method not marked.
|
|
|
|
//
|
|
|
|
// When adding an intrinsic for a method, please make sure to appropriately
|
|
|
|
// annotate the method in the source code. The list below contains all
|
|
|
|
// library intrinsics followed by bytecode intrinsics. Please also make sure to
|
|
|
|
// add the declaration of the intrinsic to the approriate section of the list.
|
2007-12-01 00:00:00 +00:00
|
|
|
#define VM_INTRINSICS_DO(do_intrinsic, do_class, do_name, do_signature, do_alias) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
/* (1) Library intrinsics */ \
|
2007-12-01 00:00:00 +00:00
|
|
|
do_intrinsic(_hashCode, java_lang_Object, hashCode_name, void_int_signature, F_R) \
|
|
|
|
do_name( hashCode_name, "hashCode") \
|
|
|
|
do_intrinsic(_getClass, java_lang_Object, getClass_name, void_class_signature, F_R) \
|
|
|
|
do_name( getClass_name, "getClass") \
|
|
|
|
do_intrinsic(_clone, java_lang_Object, clone_name, void_object_signature, F_R) \
|
|
|
|
do_name( clone_name, "clone") \
|
2015-07-21 07:28:37 -07:00
|
|
|
do_intrinsic(_notify, java_lang_Object, notify_name, void_method_signature, F_R) \
|
|
|
|
do_name( notify_name, "notify") \
|
|
|
|
do_intrinsic(_notifyAll, java_lang_Object, notifyAll_name, void_method_signature, F_R) \
|
|
|
|
do_name( notifyAll_name, "notifyAll") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
/* Math & StrictMath intrinsics are defined in terms of just a few signatures: */ \
|
|
|
|
do_class(java_lang_Math, "java/lang/Math") \
|
|
|
|
do_class(java_lang_StrictMath, "java/lang/StrictMath") \
|
|
|
|
do_signature(double2_double_signature, "(DD)D") \
|
|
|
|
do_signature(int2_int_signature, "(II)I") \
|
2013-10-18 10:41:56 +02:00
|
|
|
do_signature(long2_long_signature, "(JJ)J") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
/* here are the math names, all together: */ \
|
|
|
|
do_name(abs_name,"abs") do_name(sin_name,"sin") do_name(cos_name,"cos") \
|
|
|
|
do_name(tan_name,"tan") do_name(atan2_name,"atan2") do_name(sqrt_name,"sqrt") \
|
|
|
|
do_name(log_name,"log") do_name(log10_name,"log10") do_name(pow_name,"pow") \
|
|
|
|
do_name(exp_name,"exp") do_name(min_name,"min") do_name(max_name,"max") \
|
|
|
|
\
|
2013-09-27 08:39:19 +02:00
|
|
|
do_name(addExact_name,"addExact") \
|
2013-10-18 10:41:56 +02:00
|
|
|
do_name(decrementExact_name,"decrementExact") \
|
|
|
|
do_name(incrementExact_name,"incrementExact") \
|
2013-09-27 08:39:19 +02:00
|
|
|
do_name(multiplyExact_name,"multiplyExact") \
|
2013-10-18 10:41:56 +02:00
|
|
|
do_name(negateExact_name,"negateExact") \
|
|
|
|
do_name(subtractExact_name,"subtractExact") \
|
2013-09-27 08:39:19 +02:00
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
do_intrinsic(_dabs, java_lang_Math, abs_name, double_double_signature, F_S) \
|
|
|
|
do_intrinsic(_dsin, java_lang_Math, sin_name, double_double_signature, F_S) \
|
|
|
|
do_intrinsic(_dcos, java_lang_Math, cos_name, double_double_signature, F_S) \
|
|
|
|
do_intrinsic(_dtan, java_lang_Math, tan_name, double_double_signature, F_S) \
|
|
|
|
do_intrinsic(_datan2, java_lang_Math, atan2_name, double2_double_signature, F_S) \
|
|
|
|
do_intrinsic(_dsqrt, java_lang_Math, sqrt_name, double_double_signature, F_S) \
|
|
|
|
do_intrinsic(_dlog, java_lang_Math, log_name, double_double_signature, F_S) \
|
|
|
|
do_intrinsic(_dlog10, java_lang_Math, log10_name, double_double_signature, F_S) \
|
|
|
|
do_intrinsic(_dpow, java_lang_Math, pow_name, double2_double_signature, F_S) \
|
|
|
|
do_intrinsic(_dexp, java_lang_Math, exp_name, double_double_signature, F_S) \
|
|
|
|
do_intrinsic(_min, java_lang_Math, min_name, int2_int_signature, F_S) \
|
|
|
|
do_intrinsic(_max, java_lang_Math, max_name, int2_int_signature, F_S) \
|
2013-10-18 10:41:56 +02:00
|
|
|
do_intrinsic(_addExactI, java_lang_Math, addExact_name, int2_int_signature, F_S) \
|
|
|
|
do_intrinsic(_addExactL, java_lang_Math, addExact_name, long2_long_signature, F_S) \
|
|
|
|
do_intrinsic(_decrementExactI, java_lang_Math, decrementExact_name, int_int_signature, F_S) \
|
2014-01-09 19:03:36 +04:00
|
|
|
do_intrinsic(_decrementExactL, java_lang_Math, decrementExact_name, long_long_signature, F_S) \
|
2013-10-18 10:41:56 +02:00
|
|
|
do_intrinsic(_incrementExactI, java_lang_Math, incrementExact_name, int_int_signature, F_S) \
|
2014-01-09 19:03:36 +04:00
|
|
|
do_intrinsic(_incrementExactL, java_lang_Math, incrementExact_name, long_long_signature, F_S) \
|
2013-10-18 10:41:56 +02:00
|
|
|
do_intrinsic(_multiplyExactI, java_lang_Math, multiplyExact_name, int2_int_signature, F_S) \
|
|
|
|
do_intrinsic(_multiplyExactL, java_lang_Math, multiplyExact_name, long2_long_signature, F_S) \
|
|
|
|
do_intrinsic(_negateExactI, java_lang_Math, negateExact_name, int_int_signature, F_S) \
|
|
|
|
do_intrinsic(_negateExactL, java_lang_Math, negateExact_name, long_long_signature, F_S) \
|
|
|
|
do_intrinsic(_subtractExactI, java_lang_Math, subtractExact_name, int2_int_signature, F_S) \
|
|
|
|
do_intrinsic(_subtractExactL, java_lang_Math, subtractExact_name, long2_long_signature, F_S) \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
do_intrinsic(_floatToRawIntBits, java_lang_Float, floatToRawIntBits_name, float_int_signature, F_S) \
|
|
|
|
do_name( floatToRawIntBits_name, "floatToRawIntBits") \
|
|
|
|
do_intrinsic(_floatToIntBits, java_lang_Float, floatToIntBits_name, float_int_signature, F_S) \
|
|
|
|
do_name( floatToIntBits_name, "floatToIntBits") \
|
|
|
|
do_intrinsic(_intBitsToFloat, java_lang_Float, intBitsToFloat_name, int_float_signature, F_S) \
|
|
|
|
do_name( intBitsToFloat_name, "intBitsToFloat") \
|
|
|
|
do_intrinsic(_doubleToRawLongBits, java_lang_Double, doubleToRawLongBits_name, double_long_signature, F_S) \
|
|
|
|
do_name( doubleToRawLongBits_name, "doubleToRawLongBits") \
|
|
|
|
do_intrinsic(_doubleToLongBits, java_lang_Double, doubleToLongBits_name, double_long_signature, F_S) \
|
|
|
|
do_name( doubleToLongBits_name, "doubleToLongBits") \
|
|
|
|
do_intrinsic(_longBitsToDouble, java_lang_Double, longBitsToDouble_name, long_double_signature, F_S) \
|
|
|
|
do_name( longBitsToDouble_name, "longBitsToDouble") \
|
2009-03-13 11:35:17 -07:00
|
|
|
\
|
2009-05-06 00:27:52 -07:00
|
|
|
do_intrinsic(_numberOfLeadingZeros_i, java_lang_Integer, numberOfLeadingZeros_name,int_int_signature, F_S) \
|
|
|
|
do_intrinsic(_numberOfLeadingZeros_l, java_lang_Long, numberOfLeadingZeros_name,long_int_signature, F_S) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_numberOfTrailingZeros_i, java_lang_Integer, numberOfTrailingZeros_name,int_int_signature, F_S) \
|
|
|
|
do_intrinsic(_numberOfTrailingZeros_l, java_lang_Long, numberOfTrailingZeros_name,long_int_signature, F_S) \
|
|
|
|
\
|
2009-03-13 11:35:17 -07:00
|
|
|
do_intrinsic(_bitCount_i, java_lang_Integer, bitCount_name, int_int_signature, F_S) \
|
|
|
|
do_intrinsic(_bitCount_l, java_lang_Long, bitCount_name, long_int_signature, F_S) \
|
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
do_intrinsic(_reverseBytes_i, java_lang_Integer, reverseBytes_name, int_int_signature, F_S) \
|
|
|
|
do_name( reverseBytes_name, "reverseBytes") \
|
|
|
|
do_intrinsic(_reverseBytes_l, java_lang_Long, reverseBytes_name, long_long_signature, F_S) \
|
2010-04-26 11:27:21 -07:00
|
|
|
/* (symbol reverseBytes_name defined above) */ \
|
|
|
|
do_intrinsic(_reverseBytes_c, java_lang_Character, reverseBytes_name, char_char_signature, F_S) \
|
|
|
|
/* (symbol reverseBytes_name defined above) */ \
|
|
|
|
do_intrinsic(_reverseBytes_s, java_lang_Short, reverseBytes_name, short_short_signature, F_S) \
|
2007-12-01 00:00:00 +00:00
|
|
|
/* (symbol reverseBytes_name defined above) */ \
|
|
|
|
\
|
|
|
|
do_intrinsic(_identityHashCode, java_lang_System, identityHashCode_name, object_int_signature, F_S) \
|
|
|
|
do_name( identityHashCode_name, "identityHashCode") \
|
|
|
|
do_intrinsic(_currentTimeMillis, java_lang_System, currentTimeMillis_name, void_long_signature, F_S) \
|
|
|
|
\
|
|
|
|
do_name( currentTimeMillis_name, "currentTimeMillis") \
|
|
|
|
do_intrinsic(_nanoTime, java_lang_System, nanoTime_name, void_long_signature, F_S) \
|
|
|
|
do_name( nanoTime_name, "nanoTime") \
|
|
|
|
\
|
2012-03-06 12:36:59 +01:00
|
|
|
TRACE_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias) \
|
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
do_intrinsic(_arraycopy, java_lang_System, arraycopy_name, arraycopy_signature, F_S) \
|
|
|
|
do_name( arraycopy_name, "arraycopy") \
|
|
|
|
do_signature(arraycopy_signature, "(Ljava/lang/Object;ILjava/lang/Object;II)V") \
|
|
|
|
do_intrinsic(_isInterrupted, java_lang_Thread, isInterrupted_name, isInterrupted_signature, F_R) \
|
|
|
|
do_name( isInterrupted_name, "isInterrupted") \
|
|
|
|
do_signature(isInterrupted_signature, "(Z)Z") \
|
|
|
|
do_intrinsic(_currentThread, java_lang_Thread, currentThread_name, currentThread_signature, F_S) \
|
|
|
|
do_name( currentThread_name, "currentThread") \
|
|
|
|
do_signature(currentThread_signature, "()Ljava/lang/Thread;") \
|
|
|
|
\
|
|
|
|
/* reflective intrinsics, for java/lang/Class, etc. */ \
|
|
|
|
do_intrinsic(_isAssignableFrom, java_lang_Class, isAssignableFrom_name, class_boolean_signature, F_RN) \
|
|
|
|
do_name( isAssignableFrom_name, "isAssignableFrom") \
|
|
|
|
do_intrinsic(_isInstance, java_lang_Class, isInstance_name, object_boolean_signature, F_RN) \
|
|
|
|
do_name( isInstance_name, "isInstance") \
|
|
|
|
do_intrinsic(_getModifiers, java_lang_Class, getModifiers_name, void_int_signature, F_RN) \
|
|
|
|
do_name( getModifiers_name, "getModifiers") \
|
|
|
|
do_intrinsic(_isInterface, java_lang_Class, isInterface_name, void_boolean_signature, F_RN) \
|
|
|
|
do_name( isInterface_name, "isInterface") \
|
|
|
|
do_intrinsic(_isArray, java_lang_Class, isArray_name, void_boolean_signature, F_RN) \
|
|
|
|
do_name( isArray_name, "isArray") \
|
|
|
|
do_intrinsic(_isPrimitive, java_lang_Class, isPrimitive_name, void_boolean_signature, F_RN) \
|
|
|
|
do_name( isPrimitive_name, "isPrimitive") \
|
|
|
|
do_intrinsic(_getSuperclass, java_lang_Class, getSuperclass_name, void_class_signature, F_RN) \
|
|
|
|
do_name( getSuperclass_name, "getSuperclass") \
|
2014-10-31 16:51:57 -07:00
|
|
|
do_intrinsic(_Class_cast, java_lang_Class, Class_cast_name, object_object_signature, F_R) \
|
|
|
|
do_name( Class_cast_name, "cast") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
do_intrinsic(_getClassAccessFlags, sun_reflect_Reflection, getClassAccessFlags_name, class_int_signature, F_SN) \
|
|
|
|
do_name( getClassAccessFlags_name, "getClassAccessFlags") \
|
|
|
|
do_intrinsic(_getLength, java_lang_reflect_Array, getLength_name, object_int_signature, F_SN) \
|
|
|
|
do_name( getLength_name, "getLength") \
|
|
|
|
\
|
2013-03-25 17:13:26 -07:00
|
|
|
do_intrinsic(_getCallerClass, sun_reflect_Reflection, getCallerClass_name, void_class_signature, F_SN) \
|
2007-12-01 00:00:00 +00:00
|
|
|
do_name( getCallerClass_name, "getCallerClass") \
|
|
|
|
\
|
|
|
|
do_intrinsic(_newArray, java_lang_reflect_Array, newArray_name, newArray_signature, F_SN) \
|
|
|
|
do_name( newArray_name, "newArray") \
|
|
|
|
do_signature(newArray_signature, "(Ljava/lang/Class;I)Ljava/lang/Object;") \
|
|
|
|
\
|
2016-03-30 17:04:14 +02:00
|
|
|
do_intrinsic(_onSpinWait, java_lang_Thread, onSpinWait_name, onSpinWait_signature, F_S) \
|
|
|
|
do_name( onSpinWait_name, "onSpinWait") \
|
|
|
|
do_alias( onSpinWait_signature, void_method_signature) \
|
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
do_intrinsic(_copyOf, java_util_Arrays, copyOf_name, copyOf_signature, F_S) \
|
|
|
|
do_name( copyOf_name, "copyOf") \
|
|
|
|
do_signature(copyOf_signature, "([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;") \
|
|
|
|
\
|
|
|
|
do_intrinsic(_copyOfRange, java_util_Arrays, copyOfRange_name, copyOfRange_signature, F_S) \
|
|
|
|
do_name( copyOfRange_name, "copyOfRange") \
|
|
|
|
do_signature(copyOfRange_signature, "([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;") \
|
|
|
|
\
|
2008-05-29 16:22:09 -07:00
|
|
|
do_intrinsic(_equalsC, java_util_Arrays, equals_name, equalsC_signature, F_S) \
|
|
|
|
do_signature(equalsC_signature, "([C[C)Z") \
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
do_intrinsic(_equalsB, java_util_Arrays, equals_name, equalsB_signature, F_S) \
|
|
|
|
do_signature(equalsB_signature, "([B[B)Z") \
|
2008-05-29 16:22:09 -07:00
|
|
|
\
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
do_intrinsic(_compressStringC, java_lang_StringUTF16, compress_name, encodeISOArray_signature, F_S) \
|
|
|
|
do_name( compress_name, "compress") \
|
|
|
|
do_intrinsic(_compressStringB, java_lang_StringUTF16, compress_name, indexOfI_signature, F_S) \
|
|
|
|
do_intrinsic(_inflateStringC, java_lang_StringLatin1, inflate_name, inflateC_signature, F_S) \
|
|
|
|
do_name( inflate_name, "inflate") \
|
|
|
|
do_signature(inflateC_signature, "([BI[CII)V") \
|
|
|
|
do_intrinsic(_inflateStringB, java_lang_StringLatin1, inflate_name, inflateB_signature, F_S) \
|
|
|
|
do_signature(inflateB_signature, "([BI[BII)V") \
|
|
|
|
do_intrinsic(_toBytesStringU, java_lang_StringUTF16, toBytes_name, toBytesU_signature, F_S) \
|
|
|
|
do_name( toBytes_name, "toBytes") \
|
|
|
|
do_signature(toBytesU_signature, "([CII)[B") \
|
|
|
|
do_intrinsic(_getCharsStringU, java_lang_StringUTF16, getCharsU_name, getCharsU_signature, F_S) \
|
|
|
|
do_name( getCharsU_name, "getChars") \
|
|
|
|
do_signature(getCharsU_signature, "([BII[CI)V") \
|
|
|
|
do_intrinsic(_getCharStringU, java_lang_StringUTF16, getChar_name, getCharStringU_signature, F_S) \
|
|
|
|
do_signature(getCharStringU_signature, "([BI)C") \
|
|
|
|
do_intrinsic(_putCharStringU, java_lang_StringUTF16, putChar_name, putCharStringU_signature, F_S) \
|
|
|
|
do_signature(putCharStringU_signature, "([BII)V") \
|
|
|
|
do_intrinsic(_compareToL, java_lang_StringLatin1,compareTo_name, compareTo_indexOf_signature, F_S) \
|
|
|
|
do_intrinsic(_compareToU, java_lang_StringUTF16, compareTo_name, compareTo_indexOf_signature, F_S) \
|
|
|
|
do_intrinsic(_compareToLU, java_lang_StringLatin1,compareToLU_name, compareTo_indexOf_signature, F_S) \
|
|
|
|
do_intrinsic(_compareToUL, java_lang_StringUTF16, compareToUL_name, compareTo_indexOf_signature, F_S) \
|
|
|
|
do_signature(compareTo_indexOf_signature, "([B[B)I") \
|
2007-12-01 00:00:00 +00:00
|
|
|
do_name( compareTo_name, "compareTo") \
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
do_name( compareToLU_name, "compareToUTF16") \
|
|
|
|
do_name( compareToUL_name, "compareToLatin1") \
|
|
|
|
do_intrinsic(_indexOfL, java_lang_StringLatin1,indexOf_name, compareTo_indexOf_signature, F_S) \
|
|
|
|
do_intrinsic(_indexOfU, java_lang_StringUTF16, indexOf_name, compareTo_indexOf_signature, F_S) \
|
|
|
|
do_intrinsic(_indexOfUL, java_lang_StringUTF16, indexOfUL_name, compareTo_indexOf_signature, F_S) \
|
|
|
|
do_intrinsic(_indexOfIL, java_lang_StringLatin1,indexOf_name, indexOfI_signature, F_S) \
|
|
|
|
do_intrinsic(_indexOfIU, java_lang_StringUTF16, indexOf_name, indexOfI_signature, F_S) \
|
|
|
|
do_intrinsic(_indexOfIUL, java_lang_StringUTF16, indexOfUL_name, indexOfI_signature, F_S) \
|
|
|
|
do_intrinsic(_indexOfU_char, java_lang_StringUTF16, indexOfChar_name, indexOfChar_signature, F_S) \
|
2007-12-01 00:00:00 +00:00
|
|
|
do_name( indexOf_name, "indexOf") \
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
do_name( indexOfChar_name, "indexOfChar") \
|
|
|
|
do_name( indexOfUL_name, "indexOfLatin1") \
|
|
|
|
do_signature(indexOfI_signature, "([BI[BII)I") \
|
|
|
|
do_signature(indexOfChar_signature, "([BIII)I") \
|
|
|
|
do_intrinsic(_equalsL, java_lang_StringLatin1,equals_name, equalsB_signature, F_S) \
|
|
|
|
do_intrinsic(_equalsU, java_lang_StringUTF16, equals_name, equalsB_signature, F_S) \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
2015-11-16 09:55:25 +01:00
|
|
|
do_intrinsic(_Objects_checkIndex, java_util_Objects, checkIndex_name, Objects_checkIndex_signature, F_S) \
|
|
|
|
do_signature(Objects_checkIndex_signature, "(IILjava/util/function/BiFunction;)I") \
|
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
do_class(java_nio_Buffer, "java/nio/Buffer") \
|
|
|
|
do_intrinsic(_checkIndex, java_nio_Buffer, checkIndex_name, int_int_signature, F_R) \
|
|
|
|
do_name( checkIndex_name, "checkIndex") \
|
|
|
|
\
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
do_class(java_lang_StringCoding, "java/lang/StringCoding") \
|
|
|
|
do_intrinsic(_hasNegatives, java_lang_StringCoding, hasNegatives_name, hasNegatives_signature, F_S) \
|
|
|
|
do_name( hasNegatives_name, "hasNegatives") \
|
|
|
|
do_signature(hasNegatives_signature, "([BII)Z") \
|
|
|
|
\
|
2013-01-22 15:34:16 -08:00
|
|
|
do_class(sun_nio_cs_iso8859_1_Encoder, "sun/nio/cs/ISO_8859_1$Encoder") \
|
|
|
|
do_intrinsic(_encodeISOArray, sun_nio_cs_iso8859_1_Encoder, encodeISOArray_name, encodeISOArray_signature, F_S) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_name( encodeISOArray_name, "implEncodeISOArray") \
|
2013-01-22 15:34:16 -08:00
|
|
|
do_signature(encodeISOArray_signature, "([CI[BII)I") \
|
|
|
|
\
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
do_intrinsic(_encodeByteISOArray, java_lang_StringCoding, encodeISOArray_name, indexOfI_signature, F_S) \
|
|
|
|
\
|
2014-09-02 12:48:45 -07:00
|
|
|
do_class(java_math_BigInteger, "java/math/BigInteger") \
|
2015-06-16 17:31:53 +01:00
|
|
|
do_intrinsic(_multiplyToLen, java_math_BigInteger, multiplyToLen_name, multiplyToLen_signature, F_S) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_name( multiplyToLen_name, "implMultiplyToLen") \
|
2014-09-02 12:48:45 -07:00
|
|
|
do_signature(multiplyToLen_signature, "([II[II[I)[I") \
|
|
|
|
\
|
2015-06-03 15:02:10 -07:00
|
|
|
do_intrinsic(_squareToLen, java_math_BigInteger, squareToLen_name, squareToLen_signature, F_S) \
|
|
|
|
do_name( squareToLen_name, "implSquareToLen") \
|
|
|
|
do_signature(squareToLen_signature, "([II[II)[I") \
|
|
|
|
\
|
|
|
|
do_intrinsic(_mulAdd, java_math_BigInteger, mulAdd_name, mulAdd_signature, F_S) \
|
|
|
|
do_name( mulAdd_name, "implMulAdd") \
|
|
|
|
do_signature(mulAdd_signature, "([I[IIII)I") \
|
|
|
|
\
|
2015-06-16 17:31:53 +01:00
|
|
|
do_intrinsic(_montgomeryMultiply, java_math_BigInteger, montgomeryMultiply_name, montgomeryMultiply_signature, F_S) \
|
|
|
|
do_name( montgomeryMultiply_name, "implMontgomeryMultiply") \
|
|
|
|
do_signature(montgomeryMultiply_signature, "([I[I[IIJ[I)[I") \
|
|
|
|
\
|
|
|
|
do_intrinsic(_montgomerySquare, java_math_BigInteger, montgomerySquare_name, montgomerySquare_signature, F_S) \
|
|
|
|
do_name( montgomerySquare_name, "implMontgomerySquare") \
|
|
|
|
do_signature(montgomerySquare_signature, "([I[IIJ[I)[I") \
|
|
|
|
\
|
2015-12-07 16:35:07 -08:00
|
|
|
do_class(java_util_ArraysSupport, "java/util/ArraysSupport") \
|
|
|
|
do_intrinsic(_vectorizedMismatch, java_util_ArraysSupport, vectorizedMismatch_name, vectorizedMismatch_signature, F_S)\
|
|
|
|
do_name(vectorizedMismatch_name, "vectorizedMismatch") \
|
|
|
|
do_signature(vectorizedMismatch_signature, "(Ljava/lang/Object;JLjava/lang/Object;JII)I") \
|
|
|
|
\
|
2011-04-07 09:53:20 -07:00
|
|
|
/* java/lang/ref/Reference */ \
|
|
|
|
do_intrinsic(_Reference_get, java_lang_ref_Reference, get_name, void_object_signature, F_R) \
|
|
|
|
\
|
2014-04-30 14:14:01 -07:00
|
|
|
/* support for com.sun.crypto.provider.AESCrypt and some of its callers */ \
|
2012-10-24 14:33:22 -07:00
|
|
|
do_class(com_sun_crypto_provider_aescrypt, "com/sun/crypto/provider/AESCrypt") \
|
|
|
|
do_intrinsic(_aescrypt_encryptBlock, com_sun_crypto_provider_aescrypt, encryptBlock_name, byteArray_int_byteArray_int_signature, F_R) \
|
|
|
|
do_intrinsic(_aescrypt_decryptBlock, com_sun_crypto_provider_aescrypt, decryptBlock_name, byteArray_int_byteArray_int_signature, F_R) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_name( encryptBlock_name, "implEncryptBlock") \
|
|
|
|
do_name( decryptBlock_name, "implDecryptBlock") \
|
2012-10-24 14:33:22 -07:00
|
|
|
do_signature(byteArray_int_byteArray_int_signature, "([BI[BI)V") \
|
|
|
|
\
|
|
|
|
do_class(com_sun_crypto_provider_cipherBlockChaining, "com/sun/crypto/provider/CipherBlockChaining") \
|
|
|
|
do_intrinsic(_cipherBlockChaining_encryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, encrypt_name, byteArray_int_int_byteArray_int_signature, F_R) \
|
|
|
|
do_intrinsic(_cipherBlockChaining_decryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, decrypt_name, byteArray_int_int_byteArray_int_signature, F_R) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_name( encrypt_name, "implEncrypt") \
|
|
|
|
do_name( decrypt_name, "implDecrypt") \
|
2014-01-14 17:46:48 -08:00
|
|
|
do_signature(byteArray_int_int_byteArray_int_signature, "([BII[BI)I") \
|
2012-10-24 14:33:22 -07:00
|
|
|
\
|
2015-12-28 23:11:01 -08:00
|
|
|
do_class(com_sun_crypto_provider_counterMode, "com/sun/crypto/provider/CounterMode") \
|
|
|
|
do_intrinsic(_counterMode_AESCrypt, com_sun_crypto_provider_counterMode, crypt_name, byteArray_int_int_byteArray_int_signature, F_R) \
|
|
|
|
do_name( crypt_name, "implCrypt") \
|
|
|
|
\
|
2014-06-11 11:05:10 -07:00
|
|
|
/* support for sun.security.provider.SHA */ \
|
|
|
|
do_class(sun_security_provider_sha, "sun/security/provider/SHA") \
|
|
|
|
do_intrinsic(_sha_implCompress, sun_security_provider_sha, implCompress_name, implCompress_signature, F_R) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_name( implCompress_name, "implCompress0") \
|
2014-06-11 11:05:10 -07:00
|
|
|
do_signature(implCompress_signature, "([BI)V") \
|
|
|
|
\
|
|
|
|
/* support for sun.security.provider.SHA2 */ \
|
|
|
|
do_class(sun_security_provider_sha2, "sun/security/provider/SHA2") \
|
|
|
|
do_intrinsic(_sha2_implCompress, sun_security_provider_sha2, implCompress_name, implCompress_signature, F_R) \
|
|
|
|
\
|
|
|
|
/* support for sun.security.provider.SHA5 */ \
|
|
|
|
do_class(sun_security_provider_sha5, "sun/security/provider/SHA5") \
|
|
|
|
do_intrinsic(_sha5_implCompress, sun_security_provider_sha5, implCompress_name, implCompress_signature, F_R) \
|
|
|
|
\
|
|
|
|
/* support for sun.security.provider.DigestBase */ \
|
|
|
|
do_class(sun_security_provider_digestbase, "sun/security/provider/DigestBase") \
|
|
|
|
do_intrinsic(_digestBase_implCompressMB, sun_security_provider_digestbase, implCompressMB_name, implCompressMB_signature, F_R) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_name( implCompressMB_name, "implCompressMultiBlock0") \
|
2014-06-11 11:05:10 -07:00
|
|
|
do_signature(implCompressMB_signature, "([BII)I") \
|
|
|
|
\
|
2015-06-17 17:48:25 -07:00
|
|
|
/* support for com.sun.crypto.provider.GHASH */ \
|
|
|
|
do_class(com_sun_crypto_provider_ghash, "com/sun/crypto/provider/GHASH") \
|
|
|
|
do_intrinsic(_ghash_processBlocks, com_sun_crypto_provider_ghash, processBlocks_name, ghash_processBlocks_signature, F_S) \
|
|
|
|
do_name(processBlocks_name, "processBlocks") \
|
|
|
|
do_signature(ghash_processBlocks_signature, "([BII[J[J)V") \
|
|
|
|
\
|
2013-07-02 20:42:12 -04:00
|
|
|
/* support for java.util.zip */ \
|
|
|
|
do_class(java_util_zip_CRC32, "java/util/zip/CRC32") \
|
|
|
|
do_intrinsic(_updateCRC32, java_util_zip_CRC32, update_name, int2_int_signature, F_SN) \
|
|
|
|
do_name( update_name, "update") \
|
|
|
|
do_intrinsic(_updateBytesCRC32, java_util_zip_CRC32, updateBytes_name, updateBytes_signature, F_SN) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_name( updateBytes_name, "updateBytes0") \
|
2013-07-02 20:42:12 -04:00
|
|
|
do_signature(updateBytes_signature, "(I[BII)I") \
|
|
|
|
do_intrinsic(_updateByteBufferCRC32, java_util_zip_CRC32, updateByteBuffer_name, updateByteBuffer_signature, F_SN) \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_name( updateByteBuffer_name, "updateByteBuffer0") \
|
2013-07-02 20:42:12 -04:00
|
|
|
do_signature(updateByteBuffer_signature, "(IJII)I") \
|
|
|
|
\
|
2015-06-29 00:10:01 -07:00
|
|
|
/* support for java.util.zip.CRC32C */ \
|
|
|
|
do_class(java_util_zip_CRC32C, "java/util/zip/CRC32C") \
|
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:25:03 +02:00
|
|
|
do_intrinsic(_updateBytesCRC32C, java_util_zip_CRC32C, updateBytes_C_name, updateBytes_signature, F_S) \
|
|
|
|
do_name( updateBytes_C_name, "updateBytes") \
|
|
|
|
do_intrinsic(_updateDirectByteBufferCRC32C, java_util_zip_CRC32C, updateDirectByteBuffer_C_name, updateByteBuffer_signature, F_S) \
|
|
|
|
do_name( updateDirectByteBuffer_C_name, "updateDirectByteBuffer") \
|
2015-06-29 00:10:01 -07:00
|
|
|
\
|
2015-09-03 15:03:12 -07:00
|
|
|
/* support for java.util.zip.Adler32 */ \
|
|
|
|
do_class(java_util_zip_Adler32, "java/util/zip/Adler32") \
|
|
|
|
do_intrinsic(_updateBytesAdler32, java_util_zip_Adler32, updateBytes_C_name, updateBytes_signature, F_SN) \
|
|
|
|
do_intrinsic(_updateByteBufferAdler32, java_util_zip_Adler32, updateByteBuffer_A_name, updateByteBuffer_signature, F_SN) \
|
|
|
|
do_name( updateByteBuffer_A_name, "updateByteBuffer") \
|
|
|
|
\
|
2015-10-27 14:18:56 +00:00
|
|
|
/* support for Unsafe */ \
|
|
|
|
do_class(jdk_internal_misc_Unsafe, "jdk/internal/misc/Unsafe") \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
2015-10-27 14:18:56 +00:00
|
|
|
do_intrinsic(_allocateInstance, jdk_internal_misc_Unsafe, allocateInstance_name, allocateInstance_signature, F_RN) \
|
|
|
|
do_name( allocateInstance_name, "allocateInstance") \
|
|
|
|
do_signature(allocateInstance_signature, "(Ljava/lang/Class;)Ljava/lang/Object;") \
|
2016-03-03 23:57:29 +03:00
|
|
|
do_intrinsic(_allocateUninitializedArray, jdk_internal_misc_Unsafe, allocateUninitializedArray_name, newArray_signature, F_R) \
|
|
|
|
do_name( allocateUninitializedArray_name, "allocateUninitializedArray0") \
|
2015-10-27 14:18:56 +00:00
|
|
|
do_intrinsic(_copyMemory, jdk_internal_misc_Unsafe, copyMemory_name, copyMemory_signature, F_RN) \
|
2016-03-03 09:33:30 -08:00
|
|
|
do_name( copyMemory_name, "copyMemory0") \
|
2015-10-27 14:18:56 +00:00
|
|
|
do_signature(copyMemory_signature, "(Ljava/lang/Object;JLjava/lang/Object;JJ)V") \
|
|
|
|
do_intrinsic(_loadFence, jdk_internal_misc_Unsafe, loadFence_name, loadFence_signature, F_RN) \
|
|
|
|
do_name( loadFence_name, "loadFence") \
|
|
|
|
do_alias( loadFence_signature, void_method_signature) \
|
|
|
|
do_intrinsic(_storeFence, jdk_internal_misc_Unsafe, storeFence_name, storeFence_signature, F_RN) \
|
|
|
|
do_name( storeFence_name, "storeFence") \
|
|
|
|
do_alias( storeFence_signature, void_method_signature) \
|
|
|
|
do_intrinsic(_fullFence, jdk_internal_misc_Unsafe, fullFence_name, fullFence_signature, F_RN) \
|
|
|
|
do_name( fullFence_name, "fullFence") \
|
|
|
|
do_alias( fullFence_signature, void_method_signature) \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
2015-01-29 10:25:59 -08:00
|
|
|
/* Custom branch frequencies profiling support for JSR292 */ \
|
|
|
|
do_class(java_lang_invoke_MethodHandleImpl, "java/lang/invoke/MethodHandleImpl") \
|
2015-03-20 11:41:34 -07:00
|
|
|
do_intrinsic(_profileBoolean, java_lang_invoke_MethodHandleImpl, profileBoolean_name, profileBoolean_signature, F_S) \
|
|
|
|
do_name( profileBoolean_name, "profileBoolean") \
|
|
|
|
do_signature(profileBoolean_signature, "(Z[I)Z") \
|
|
|
|
do_intrinsic(_isCompileConstant, java_lang_invoke_MethodHandleImpl, isCompileConstant_name, isCompileConstant_signature, F_S) \
|
|
|
|
do_name( isCompileConstant_name, "isCompileConstant") \
|
|
|
|
do_alias( isCompileConstant_signature, object_boolean_signature) \
|
2015-01-29 10:25:59 -08:00
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
/* unsafe memory references (there are a lot of them...) */ \
|
|
|
|
do_signature(getObject_signature, "(Ljava/lang/Object;J)Ljava/lang/Object;") \
|
|
|
|
do_signature(putObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;)V") \
|
|
|
|
do_signature(getBoolean_signature, "(Ljava/lang/Object;J)Z") \
|
|
|
|
do_signature(putBoolean_signature, "(Ljava/lang/Object;JZ)V") \
|
|
|
|
do_signature(getByte_signature, "(Ljava/lang/Object;J)B") \
|
|
|
|
do_signature(putByte_signature, "(Ljava/lang/Object;JB)V") \
|
|
|
|
do_signature(getShort_signature, "(Ljava/lang/Object;J)S") \
|
|
|
|
do_signature(putShort_signature, "(Ljava/lang/Object;JS)V") \
|
|
|
|
do_signature(getChar_signature, "(Ljava/lang/Object;J)C") \
|
|
|
|
do_signature(putChar_signature, "(Ljava/lang/Object;JC)V") \
|
|
|
|
do_signature(getInt_signature, "(Ljava/lang/Object;J)I") \
|
|
|
|
do_signature(putInt_signature, "(Ljava/lang/Object;JI)V") \
|
|
|
|
do_signature(getLong_signature, "(Ljava/lang/Object;J)J") \
|
|
|
|
do_signature(putLong_signature, "(Ljava/lang/Object;JJ)V") \
|
|
|
|
do_signature(getFloat_signature, "(Ljava/lang/Object;J)F") \
|
|
|
|
do_signature(putFloat_signature, "(Ljava/lang/Object;JF)V") \
|
|
|
|
do_signature(getDouble_signature, "(Ljava/lang/Object;J)D") \
|
|
|
|
do_signature(putDouble_signature, "(Ljava/lang/Object;JD)V") \
|
|
|
|
\
|
|
|
|
do_name(getObject_name,"getObject") do_name(putObject_name,"putObject") \
|
|
|
|
do_name(getBoolean_name,"getBoolean") do_name(putBoolean_name,"putBoolean") \
|
|
|
|
do_name(getByte_name,"getByte") do_name(putByte_name,"putByte") \
|
|
|
|
do_name(getShort_name,"getShort") do_name(putShort_name,"putShort") \
|
|
|
|
do_name(getChar_name,"getChar") do_name(putChar_name,"putChar") \
|
|
|
|
do_name(getInt_name,"getInt") do_name(putInt_name,"putInt") \
|
|
|
|
do_name(getLong_name,"getLong") do_name(putLong_name,"putLong") \
|
|
|
|
do_name(getFloat_name,"getFloat") do_name(putFloat_name,"putFloat") \
|
|
|
|
do_name(getDouble_name,"getDouble") do_name(putDouble_name,"putDouble") \
|
|
|
|
\
|
2015-10-27 14:18:56 +00:00
|
|
|
do_intrinsic(_getObject, jdk_internal_misc_Unsafe, getObject_name, getObject_signature, F_RN) \
|
|
|
|
do_intrinsic(_getBoolean, jdk_internal_misc_Unsafe, getBoolean_name, getBoolean_signature, F_RN) \
|
|
|
|
do_intrinsic(_getByte, jdk_internal_misc_Unsafe, getByte_name, getByte_signature, F_RN) \
|
|
|
|
do_intrinsic(_getShort, jdk_internal_misc_Unsafe, getShort_name, getShort_signature, F_RN) \
|
|
|
|
do_intrinsic(_getChar, jdk_internal_misc_Unsafe, getChar_name, getChar_signature, F_RN) \
|
|
|
|
do_intrinsic(_getInt, jdk_internal_misc_Unsafe, getInt_name, getInt_signature, F_RN) \
|
|
|
|
do_intrinsic(_getLong, jdk_internal_misc_Unsafe, getLong_name, getLong_signature, F_RN) \
|
|
|
|
do_intrinsic(_getFloat, jdk_internal_misc_Unsafe, getFloat_name, getFloat_signature, F_RN) \
|
|
|
|
do_intrinsic(_getDouble, jdk_internal_misc_Unsafe, getDouble_name, getDouble_signature, F_RN) \
|
|
|
|
do_intrinsic(_putObject, jdk_internal_misc_Unsafe, putObject_name, putObject_signature, F_RN) \
|
|
|
|
do_intrinsic(_putBoolean, jdk_internal_misc_Unsafe, putBoolean_name, putBoolean_signature, F_RN) \
|
|
|
|
do_intrinsic(_putByte, jdk_internal_misc_Unsafe, putByte_name, putByte_signature, F_RN) \
|
|
|
|
do_intrinsic(_putShort, jdk_internal_misc_Unsafe, putShort_name, putShort_signature, F_RN) \
|
|
|
|
do_intrinsic(_putChar, jdk_internal_misc_Unsafe, putChar_name, putChar_signature, F_RN) \
|
|
|
|
do_intrinsic(_putInt, jdk_internal_misc_Unsafe, putInt_name, putInt_signature, F_RN) \
|
|
|
|
do_intrinsic(_putLong, jdk_internal_misc_Unsafe, putLong_name, putLong_signature, F_RN) \
|
|
|
|
do_intrinsic(_putFloat, jdk_internal_misc_Unsafe, putFloat_name, putFloat_signature, F_RN) \
|
|
|
|
do_intrinsic(_putDouble, jdk_internal_misc_Unsafe, putDouble_name, putDouble_signature, F_RN) \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
|
|
|
do_name(getObjectVolatile_name,"getObjectVolatile") do_name(putObjectVolatile_name,"putObjectVolatile") \
|
|
|
|
do_name(getBooleanVolatile_name,"getBooleanVolatile") do_name(putBooleanVolatile_name,"putBooleanVolatile") \
|
|
|
|
do_name(getByteVolatile_name,"getByteVolatile") do_name(putByteVolatile_name,"putByteVolatile") \
|
|
|
|
do_name(getShortVolatile_name,"getShortVolatile") do_name(putShortVolatile_name,"putShortVolatile") \
|
|
|
|
do_name(getCharVolatile_name,"getCharVolatile") do_name(putCharVolatile_name,"putCharVolatile") \
|
|
|
|
do_name(getIntVolatile_name,"getIntVolatile") do_name(putIntVolatile_name,"putIntVolatile") \
|
|
|
|
do_name(getLongVolatile_name,"getLongVolatile") do_name(putLongVolatile_name,"putLongVolatile") \
|
|
|
|
do_name(getFloatVolatile_name,"getFloatVolatile") do_name(putFloatVolatile_name,"putFloatVolatile") \
|
|
|
|
do_name(getDoubleVolatile_name,"getDoubleVolatile") do_name(putDoubleVolatile_name,"putDoubleVolatile") \
|
|
|
|
\
|
2015-10-27 14:18:56 +00:00
|
|
|
do_intrinsic(_getObjectVolatile, jdk_internal_misc_Unsafe, getObjectVolatile_name, getObject_signature, F_RN) \
|
|
|
|
do_intrinsic(_getBooleanVolatile, jdk_internal_misc_Unsafe, getBooleanVolatile_name, getBoolean_signature, F_RN) \
|
|
|
|
do_intrinsic(_getByteVolatile, jdk_internal_misc_Unsafe, getByteVolatile_name, getByte_signature, F_RN) \
|
|
|
|
do_intrinsic(_getShortVolatile, jdk_internal_misc_Unsafe, getShortVolatile_name, getShort_signature, F_RN) \
|
|
|
|
do_intrinsic(_getCharVolatile, jdk_internal_misc_Unsafe, getCharVolatile_name, getChar_signature, F_RN) \
|
|
|
|
do_intrinsic(_getIntVolatile, jdk_internal_misc_Unsafe, getIntVolatile_name, getInt_signature, F_RN) \
|
|
|
|
do_intrinsic(_getLongVolatile, jdk_internal_misc_Unsafe, getLongVolatile_name, getLong_signature, F_RN) \
|
|
|
|
do_intrinsic(_getFloatVolatile, jdk_internal_misc_Unsafe, getFloatVolatile_name, getFloat_signature, F_RN) \
|
|
|
|
do_intrinsic(_getDoubleVolatile, jdk_internal_misc_Unsafe, getDoubleVolatile_name, getDouble_signature, F_RN) \
|
|
|
|
do_intrinsic(_putObjectVolatile, jdk_internal_misc_Unsafe, putObjectVolatile_name, putObject_signature, F_RN) \
|
|
|
|
do_intrinsic(_putBooleanVolatile, jdk_internal_misc_Unsafe, putBooleanVolatile_name, putBoolean_signature, F_RN) \
|
|
|
|
do_intrinsic(_putByteVolatile, jdk_internal_misc_Unsafe, putByteVolatile_name, putByte_signature, F_RN) \
|
|
|
|
do_intrinsic(_putShortVolatile, jdk_internal_misc_Unsafe, putShortVolatile_name, putShort_signature, F_RN) \
|
|
|
|
do_intrinsic(_putCharVolatile, jdk_internal_misc_Unsafe, putCharVolatile_name, putChar_signature, F_RN) \
|
|
|
|
do_intrinsic(_putIntVolatile, jdk_internal_misc_Unsafe, putIntVolatile_name, putInt_signature, F_RN) \
|
|
|
|
do_intrinsic(_putLongVolatile, jdk_internal_misc_Unsafe, putLongVolatile_name, putLong_signature, F_RN) \
|
|
|
|
do_intrinsic(_putFloatVolatile, jdk_internal_misc_Unsafe, putFloatVolatile_name, putFloat_signature, F_RN) \
|
|
|
|
do_intrinsic(_putDoubleVolatile, jdk_internal_misc_Unsafe, putDoubleVolatile_name, putDouble_signature, F_RN) \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
2016-02-23 22:09:41 +03:00
|
|
|
do_name(getObjectOpaque_name,"getObjectOpaque") do_name(putObjectOpaque_name,"putObjectOpaque") \
|
|
|
|
do_name(getBooleanOpaque_name,"getBooleanOpaque") do_name(putBooleanOpaque_name,"putBooleanOpaque") \
|
|
|
|
do_name(getByteOpaque_name,"getByteOpaque") do_name(putByteOpaque_name,"putByteOpaque") \
|
|
|
|
do_name(getShortOpaque_name,"getShortOpaque") do_name(putShortOpaque_name,"putShortOpaque") \
|
|
|
|
do_name(getCharOpaque_name,"getCharOpaque") do_name(putCharOpaque_name,"putCharOpaque") \
|
|
|
|
do_name(getIntOpaque_name,"getIntOpaque") do_name(putIntOpaque_name,"putIntOpaque") \
|
|
|
|
do_name(getLongOpaque_name,"getLongOpaque") do_name(putLongOpaque_name,"putLongOpaque") \
|
|
|
|
do_name(getFloatOpaque_name,"getFloatOpaque") do_name(putFloatOpaque_name,"putFloatOpaque") \
|
|
|
|
do_name(getDoubleOpaque_name,"getDoubleOpaque") do_name(putDoubleOpaque_name,"putDoubleOpaque") \
|
|
|
|
\
|
|
|
|
do_intrinsic(_getObjectOpaque, jdk_internal_misc_Unsafe, getObjectOpaque_name, getObject_signature, F_R) \
|
|
|
|
do_intrinsic(_getBooleanOpaque, jdk_internal_misc_Unsafe, getBooleanOpaque_name, getBoolean_signature, F_R) \
|
|
|
|
do_intrinsic(_getByteOpaque, jdk_internal_misc_Unsafe, getByteOpaque_name, getByte_signature, F_R) \
|
|
|
|
do_intrinsic(_getShortOpaque, jdk_internal_misc_Unsafe, getShortOpaque_name, getShort_signature, F_R) \
|
|
|
|
do_intrinsic(_getCharOpaque, jdk_internal_misc_Unsafe, getCharOpaque_name, getChar_signature, F_R) \
|
|
|
|
do_intrinsic(_getIntOpaque, jdk_internal_misc_Unsafe, getIntOpaque_name, getInt_signature, F_R) \
|
|
|
|
do_intrinsic(_getLongOpaque, jdk_internal_misc_Unsafe, getLongOpaque_name, getLong_signature, F_R) \
|
|
|
|
do_intrinsic(_getFloatOpaque, jdk_internal_misc_Unsafe, getFloatOpaque_name, getFloat_signature, F_R) \
|
|
|
|
do_intrinsic(_getDoubleOpaque, jdk_internal_misc_Unsafe, getDoubleOpaque_name, getDouble_signature, F_R) \
|
|
|
|
do_intrinsic(_putObjectOpaque, jdk_internal_misc_Unsafe, putObjectOpaque_name, putObject_signature, F_R) \
|
|
|
|
do_intrinsic(_putBooleanOpaque, jdk_internal_misc_Unsafe, putBooleanOpaque_name, putBoolean_signature, F_R) \
|
|
|
|
do_intrinsic(_putByteOpaque, jdk_internal_misc_Unsafe, putByteOpaque_name, putByte_signature, F_R) \
|
|
|
|
do_intrinsic(_putShortOpaque, jdk_internal_misc_Unsafe, putShortOpaque_name, putShort_signature, F_R) \
|
|
|
|
do_intrinsic(_putCharOpaque, jdk_internal_misc_Unsafe, putCharOpaque_name, putChar_signature, F_R) \
|
|
|
|
do_intrinsic(_putIntOpaque, jdk_internal_misc_Unsafe, putIntOpaque_name, putInt_signature, F_R) \
|
|
|
|
do_intrinsic(_putLongOpaque, jdk_internal_misc_Unsafe, putLongOpaque_name, putLong_signature, F_R) \
|
|
|
|
do_intrinsic(_putFloatOpaque, jdk_internal_misc_Unsafe, putFloatOpaque_name, putFloat_signature, F_R) \
|
|
|
|
do_intrinsic(_putDoubleOpaque, jdk_internal_misc_Unsafe, putDoubleOpaque_name, putDouble_signature, F_R) \
|
|
|
|
\
|
|
|
|
do_name(getObjectAcquire_name, "getObjectAcquire") do_name(putObjectRelease_name, "putObjectRelease") \
|
|
|
|
do_name(getBooleanAcquire_name, "getBooleanAcquire") do_name(putBooleanRelease_name, "putBooleanRelease") \
|
|
|
|
do_name(getByteAcquire_name, "getByteAcquire") do_name(putByteRelease_name, "putByteRelease") \
|
|
|
|
do_name(getShortAcquire_name, "getShortAcquire") do_name(putShortRelease_name, "putShortRelease") \
|
|
|
|
do_name(getCharAcquire_name, "getCharAcquire") do_name(putCharRelease_name, "putCharRelease") \
|
|
|
|
do_name(getIntAcquire_name, "getIntAcquire") do_name(putIntRelease_name, "putIntRelease") \
|
|
|
|
do_name(getLongAcquire_name, "getLongAcquire") do_name(putLongRelease_name, "putLongRelease") \
|
|
|
|
do_name(getFloatAcquire_name, "getFloatAcquire") do_name(putFloatRelease_name, "putFloatRelease") \
|
|
|
|
do_name(getDoubleAcquire_name, "getDoubleAcquire") do_name(putDoubleRelease_name, "putDoubleRelease") \
|
|
|
|
\
|
|
|
|
do_intrinsic(_getObjectAcquire, jdk_internal_misc_Unsafe, getObjectAcquire_name, getObject_signature, F_R) \
|
|
|
|
do_intrinsic(_getBooleanAcquire, jdk_internal_misc_Unsafe, getBooleanAcquire_name, getBoolean_signature, F_R) \
|
|
|
|
do_intrinsic(_getByteAcquire, jdk_internal_misc_Unsafe, getByteAcquire_name, getByte_signature, F_R) \
|
|
|
|
do_intrinsic(_getShortAcquire, jdk_internal_misc_Unsafe, getShortAcquire_name, getShort_signature, F_R) \
|
|
|
|
do_intrinsic(_getCharAcquire, jdk_internal_misc_Unsafe, getCharAcquire_name, getChar_signature, F_R) \
|
|
|
|
do_intrinsic(_getIntAcquire, jdk_internal_misc_Unsafe, getIntAcquire_name, getInt_signature, F_R) \
|
|
|
|
do_intrinsic(_getLongAcquire, jdk_internal_misc_Unsafe, getLongAcquire_name, getLong_signature, F_R) \
|
|
|
|
do_intrinsic(_getFloatAcquire, jdk_internal_misc_Unsafe, getFloatAcquire_name, getFloat_signature, F_R) \
|
|
|
|
do_intrinsic(_getDoubleAcquire, jdk_internal_misc_Unsafe, getDoubleAcquire_name, getDouble_signature, F_R) \
|
|
|
|
do_intrinsic(_putObjectRelease, jdk_internal_misc_Unsafe, putObjectRelease_name, putObject_signature, F_R) \
|
|
|
|
do_intrinsic(_putBooleanRelease, jdk_internal_misc_Unsafe, putBooleanRelease_name, putBoolean_signature, F_R) \
|
|
|
|
do_intrinsic(_putByteRelease, jdk_internal_misc_Unsafe, putByteRelease_name, putByte_signature, F_R) \
|
|
|
|
do_intrinsic(_putShortRelease, jdk_internal_misc_Unsafe, putShortRelease_name, putShort_signature, F_R) \
|
|
|
|
do_intrinsic(_putCharRelease, jdk_internal_misc_Unsafe, putCharRelease_name, putChar_signature, F_R) \
|
|
|
|
do_intrinsic(_putIntRelease, jdk_internal_misc_Unsafe, putIntRelease_name, putInt_signature, F_R) \
|
|
|
|
do_intrinsic(_putLongRelease, jdk_internal_misc_Unsafe, putLongRelease_name, putLong_signature, F_R) \
|
|
|
|
do_intrinsic(_putFloatRelease, jdk_internal_misc_Unsafe, putFloatRelease_name, putFloat_signature, F_R) \
|
|
|
|
do_intrinsic(_putDoubleRelease, jdk_internal_misc_Unsafe, putDoubleRelease_name, putDouble_signature, F_R) \
|
|
|
|
\
|
2015-03-31 12:31:18 -07:00
|
|
|
do_name(getShortUnaligned_name,"getShortUnaligned") do_name(putShortUnaligned_name,"putShortUnaligned") \
|
|
|
|
do_name(getCharUnaligned_name,"getCharUnaligned") do_name(putCharUnaligned_name,"putCharUnaligned") \
|
|
|
|
do_name(getIntUnaligned_name,"getIntUnaligned") do_name(putIntUnaligned_name,"putIntUnaligned") \
|
|
|
|
do_name(getLongUnaligned_name,"getLongUnaligned") do_name(putLongUnaligned_name,"putLongUnaligned") \
|
|
|
|
\
|
2015-10-27 14:18:56 +00:00
|
|
|
do_intrinsic(_getShortUnaligned, jdk_internal_misc_Unsafe, getShortUnaligned_name, getShort_signature, F_R) \
|
|
|
|
do_intrinsic(_getCharUnaligned, jdk_internal_misc_Unsafe, getCharUnaligned_name, getChar_signature, F_R) \
|
|
|
|
do_intrinsic(_getIntUnaligned, jdk_internal_misc_Unsafe, getIntUnaligned_name, getInt_signature, F_R) \
|
|
|
|
do_intrinsic(_getLongUnaligned, jdk_internal_misc_Unsafe, getLongUnaligned_name, getLong_signature, F_R) \
|
|
|
|
do_intrinsic(_putShortUnaligned, jdk_internal_misc_Unsafe, putShortUnaligned_name, putShort_signature, F_R) \
|
|
|
|
do_intrinsic(_putCharUnaligned, jdk_internal_misc_Unsafe, putCharUnaligned_name, putChar_signature, F_R) \
|
|
|
|
do_intrinsic(_putIntUnaligned, jdk_internal_misc_Unsafe, putIntUnaligned_name, putInt_signature, F_R) \
|
|
|
|
do_intrinsic(_putLongUnaligned, jdk_internal_misc_Unsafe, putLongUnaligned_name, putLong_signature, F_R) \
|
2015-03-31 12:31:18 -07:00
|
|
|
\
|
2007-12-01 00:00:00 +00:00
|
|
|
/* %%% these are redundant except perhaps for getAddress, but Unsafe has native methods for them */ \
|
|
|
|
do_signature(getByte_raw_signature, "(J)B") \
|
|
|
|
do_signature(putByte_raw_signature, "(JB)V") \
|
|
|
|
do_signature(getShort_raw_signature, "(J)S") \
|
|
|
|
do_signature(putShort_raw_signature, "(JS)V") \
|
|
|
|
do_signature(getChar_raw_signature, "(J)C") \
|
|
|
|
do_signature(putChar_raw_signature, "(JC)V") \
|
|
|
|
do_signature(putInt_raw_signature, "(JI)V") \
|
|
|
|
do_alias(getLong_raw_signature, /*(J)J*/ long_long_signature) \
|
|
|
|
do_alias(putLong_raw_signature, /*(JJ)V*/ long_long_void_signature) \
|
|
|
|
do_signature(getFloat_raw_signature, "(J)F") \
|
|
|
|
do_signature(putFloat_raw_signature, "(JF)V") \
|
|
|
|
do_alias(getDouble_raw_signature, /*(J)D*/ long_double_signature) \
|
|
|
|
do_signature(putDouble_raw_signature, "(JD)V") \
|
|
|
|
do_alias(getAddress_raw_signature, /*(J)J*/ long_long_signature) \
|
|
|
|
do_alias(putAddress_raw_signature, /*(JJ)V*/ long_long_void_signature) \
|
|
|
|
\
|
|
|
|
do_name( getAddress_name, "getAddress") \
|
|
|
|
do_name( putAddress_name, "putAddress") \
|
|
|
|
\
|
2015-10-27 14:18:56 +00:00
|
|
|
do_intrinsic(_getByte_raw, jdk_internal_misc_Unsafe, getByte_name, getByte_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_getShort_raw, jdk_internal_misc_Unsafe, getShort_name, getShort_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_getChar_raw, jdk_internal_misc_Unsafe, getChar_name, getChar_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_getInt_raw, jdk_internal_misc_Unsafe, getInt_name, long_int_signature, F_R) \
|
|
|
|
do_intrinsic(_getLong_raw, jdk_internal_misc_Unsafe, getLong_name, getLong_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_getFloat_raw, jdk_internal_misc_Unsafe, getFloat_name, getFloat_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_getDouble_raw, jdk_internal_misc_Unsafe, getDouble_name, getDouble_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_getAddress_raw, jdk_internal_misc_Unsafe, getAddress_name, getAddress_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_putByte_raw, jdk_internal_misc_Unsafe, putByte_name, putByte_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_putShort_raw, jdk_internal_misc_Unsafe, putShort_name, putShort_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_putChar_raw, jdk_internal_misc_Unsafe, putChar_name, putChar_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_putInt_raw, jdk_internal_misc_Unsafe, putInt_name, putInt_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_putLong_raw, jdk_internal_misc_Unsafe, putLong_name, putLong_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_putFloat_raw, jdk_internal_misc_Unsafe, putFloat_name, putFloat_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_putDouble_raw, jdk_internal_misc_Unsafe, putDouble_name, putDouble_raw_signature, F_R) \
|
|
|
|
do_intrinsic(_putAddress_raw, jdk_internal_misc_Unsafe, putAddress_name, putAddress_raw_signature, F_R) \
|
2007-12-01 00:00:00 +00:00
|
|
|
\
|
2016-02-23 22:09:41 +03:00
|
|
|
do_signature(compareAndSwapObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z") \
|
|
|
|
do_signature(compareAndExchangeObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
|
|
|
|
do_signature(compareAndSwapLong_signature, "(Ljava/lang/Object;JJJ)Z") \
|
|
|
|
do_signature(compareAndExchangeLong_signature, "(Ljava/lang/Object;JJJ)J") \
|
|
|
|
do_signature(compareAndSwapInt_signature, "(Ljava/lang/Object;JII)Z") \
|
|
|
|
do_signature(compareAndExchangeInt_signature, "(Ljava/lang/Object;JII)I") \
|
|
|
|
\
|
|
|
|
do_name(compareAndSwapObject_name, "compareAndSwapObject") \
|
|
|
|
do_name(compareAndExchangeObjectVolatile_name, "compareAndExchangeObjectVolatile") \
|
|
|
|
do_name(compareAndExchangeObjectAcquire_name, "compareAndExchangeObjectAcquire") \
|
|
|
|
do_name(compareAndExchangeObjectRelease_name, "compareAndExchangeObjectRelease") \
|
|
|
|
do_name(compareAndSwapLong_name, "compareAndSwapLong") \
|
|
|
|
do_name(compareAndExchangeLongVolatile_name, "compareAndExchangeLongVolatile") \
|
|
|
|
do_name(compareAndExchangeLongAcquire_name, "compareAndExchangeLongAcquire") \
|
|
|
|
do_name(compareAndExchangeLongRelease_name, "compareAndExchangeLongRelease") \
|
|
|
|
do_name(compareAndSwapInt_name, "compareAndSwapInt") \
|
|
|
|
do_name(compareAndExchangeIntVolatile_name, "compareAndExchangeIntVolatile") \
|
|
|
|
do_name(compareAndExchangeIntAcquire_name, "compareAndExchangeIntAcquire") \
|
|
|
|
do_name(compareAndExchangeIntRelease_name, "compareAndExchangeIntRelease") \
|
|
|
|
\
|
|
|
|
do_name(weakCompareAndSwapObject_name, "weakCompareAndSwapObject") \
|
|
|
|
do_name(weakCompareAndSwapObjectAcquire_name, "weakCompareAndSwapObjectAcquire") \
|
|
|
|
do_name(weakCompareAndSwapObjectRelease_name, "weakCompareAndSwapObjectRelease") \
|
|
|
|
do_name(weakCompareAndSwapLong_name, "weakCompareAndSwapLong") \
|
|
|
|
do_name(weakCompareAndSwapLongAcquire_name, "weakCompareAndSwapLongAcquire") \
|
|
|
|
do_name(weakCompareAndSwapLongRelease_name, "weakCompareAndSwapLongRelease") \
|
|
|
|
do_name(weakCompareAndSwapInt_name, "weakCompareAndSwapInt") \
|
|
|
|
do_name(weakCompareAndSwapIntAcquire_name, "weakCompareAndSwapIntAcquire") \
|
|
|
|
do_name(weakCompareAndSwapIntRelease_name, "weakCompareAndSwapIntRelease") \
|
|
|
|
\
|
|
|
|
do_intrinsic(_compareAndSwapObject, jdk_internal_misc_Unsafe, compareAndSwapObject_name, compareAndSwapObject_signature, F_RN) \
|
|
|
|
do_intrinsic(_compareAndExchangeObjectVolatile, jdk_internal_misc_Unsafe, compareAndExchangeObjectVolatile_name, compareAndExchangeObject_signature, F_RN) \
|
|
|
|
do_intrinsic(_compareAndExchangeObjectAcquire, jdk_internal_misc_Unsafe, compareAndExchangeObjectAcquire_name, compareAndExchangeObject_signature, F_R) \
|
|
|
|
do_intrinsic(_compareAndExchangeObjectRelease, jdk_internal_misc_Unsafe, compareAndExchangeObjectRelease_name, compareAndExchangeObject_signature, F_R) \
|
|
|
|
do_intrinsic(_compareAndSwapLong, jdk_internal_misc_Unsafe, compareAndSwapLong_name, compareAndSwapLong_signature, F_RN) \
|
|
|
|
do_intrinsic(_compareAndExchangeLongVolatile, jdk_internal_misc_Unsafe, compareAndExchangeLongVolatile_name, compareAndExchangeLong_signature, F_RN) \
|
|
|
|
do_intrinsic(_compareAndExchangeLongAcquire, jdk_internal_misc_Unsafe, compareAndExchangeLongAcquire_name, compareAndExchangeLong_signature, F_R) \
|
|
|
|
do_intrinsic(_compareAndExchangeLongRelease, jdk_internal_misc_Unsafe, compareAndExchangeLongRelease_name, compareAndExchangeLong_signature, F_R) \
|
|
|
|
do_intrinsic(_compareAndSwapInt, jdk_internal_misc_Unsafe, compareAndSwapInt_name, compareAndSwapInt_signature, F_RN) \
|
|
|
|
do_intrinsic(_compareAndExchangeIntVolatile, jdk_internal_misc_Unsafe, compareAndExchangeIntVolatile_name, compareAndExchangeInt_signature, F_RN) \
|
|
|
|
do_intrinsic(_compareAndExchangeIntAcquire, jdk_internal_misc_Unsafe, compareAndExchangeIntAcquire_name, compareAndExchangeInt_signature, F_R) \
|
|
|
|
do_intrinsic(_compareAndExchangeIntRelease, jdk_internal_misc_Unsafe, compareAndExchangeIntRelease_name, compareAndExchangeInt_signature, F_R) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_weakCompareAndSwapObject, jdk_internal_misc_Unsafe, weakCompareAndSwapObject_name, compareAndSwapObject_signature, F_R) \
|
|
|
|
do_intrinsic(_weakCompareAndSwapObjectAcquire, jdk_internal_misc_Unsafe, weakCompareAndSwapObjectAcquire_name, compareAndSwapObject_signature, F_R) \
|
|
|
|
do_intrinsic(_weakCompareAndSwapObjectRelease, jdk_internal_misc_Unsafe, weakCompareAndSwapObjectRelease_name, compareAndSwapObject_signature, F_R) \
|
|
|
|
do_intrinsic(_weakCompareAndSwapLong, jdk_internal_misc_Unsafe, weakCompareAndSwapLong_name, compareAndSwapLong_signature, F_R) \
|
|
|
|
do_intrinsic(_weakCompareAndSwapLongAcquire, jdk_internal_misc_Unsafe, weakCompareAndSwapLongAcquire_name, compareAndSwapLong_signature, F_R) \
|
|
|
|
do_intrinsic(_weakCompareAndSwapLongRelease, jdk_internal_misc_Unsafe, weakCompareAndSwapLongRelease_name, compareAndSwapLong_signature, F_R) \
|
|
|
|
do_intrinsic(_weakCompareAndSwapInt, jdk_internal_misc_Unsafe, weakCompareAndSwapInt_name, compareAndSwapInt_signature, F_R) \
|
|
|
|
do_intrinsic(_weakCompareAndSwapIntAcquire, jdk_internal_misc_Unsafe, weakCompareAndSwapIntAcquire_name, compareAndSwapInt_signature, F_R) \
|
|
|
|
do_intrinsic(_weakCompareAndSwapIntRelease, jdk_internal_misc_Unsafe, weakCompareAndSwapIntRelease_name, compareAndSwapInt_signature, F_R) \
|
|
|
|
\
|
2015-10-27 14:18:56 +00:00
|
|
|
do_intrinsic(_getAndAddInt, jdk_internal_misc_Unsafe, getAndAddInt_name, getAndAddInt_signature, F_R) \
|
|
|
|
do_name( getAndAddInt_name, "getAndAddInt") \
|
|
|
|
do_signature(getAndAddInt_signature, "(Ljava/lang/Object;JI)I" ) \
|
|
|
|
do_intrinsic(_getAndAddLong, jdk_internal_misc_Unsafe, getAndAddLong_name, getAndAddLong_signature, F_R) \
|
|
|
|
do_name( getAndAddLong_name, "getAndAddLong") \
|
|
|
|
do_signature(getAndAddLong_signature, "(Ljava/lang/Object;JJ)J" ) \
|
|
|
|
do_intrinsic(_getAndSetInt, jdk_internal_misc_Unsafe, getAndSetInt_name, getAndSetInt_signature, F_R) \
|
|
|
|
do_name( getAndSetInt_name, "getAndSetInt") \
|
|
|
|
do_alias( getAndSetInt_signature, /*"(Ljava/lang/Object;JI)I"*/ getAndAddInt_signature) \
|
|
|
|
do_intrinsic(_getAndSetLong, jdk_internal_misc_Unsafe, getAndSetLong_name, getAndSetLong_signature, F_R) \
|
|
|
|
do_name( getAndSetLong_name, "getAndSetLong") \
|
|
|
|
do_alias( getAndSetLong_signature, /*"(Ljava/lang/Object;JJ)J"*/ getAndAddLong_signature) \
|
|
|
|
do_intrinsic(_getAndSetObject, jdk_internal_misc_Unsafe, getAndSetObject_name, getAndSetObject_signature, F_R)\
|
|
|
|
do_name( getAndSetObject_name, "getAndSetObject") \
|
|
|
|
do_signature(getAndSetObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;" ) \
|
|
|
|
\
|
|
|
|
/* (2) Bytecode intrinsics */ \
|
|
|
|
\
|
|
|
|
do_intrinsic(_park, jdk_internal_misc_Unsafe, park_name, park_signature, F_R) \
|
|
|
|
do_name( park_name, "park") \
|
|
|
|
do_signature(park_signature, "(ZJ)V") \
|
|
|
|
do_intrinsic(_unpark, jdk_internal_misc_Unsafe, unpark_name, unpark_signature, F_R) \
|
|
|
|
do_name( unpark_name, "unpark") \
|
|
|
|
do_alias( unpark_signature, /*(LObject;)V*/ object_void_signature) \
|
|
|
|
\
|
2009-11-12 09:24:21 -08:00
|
|
|
do_intrinsic(_StringBuilder_void, java_lang_StringBuilder, object_initializer_name, void_method_signature, F_R) \
|
|
|
|
do_intrinsic(_StringBuilder_int, java_lang_StringBuilder, object_initializer_name, int_void_signature, F_R) \
|
|
|
|
do_intrinsic(_StringBuilder_String, java_lang_StringBuilder, object_initializer_name, string_void_signature, F_R) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_StringBuilder_append_char, java_lang_StringBuilder, append_name, char_StringBuilder_signature, F_R) \
|
|
|
|
do_intrinsic(_StringBuilder_append_int, java_lang_StringBuilder, append_name, int_StringBuilder_signature, F_R) \
|
|
|
|
do_intrinsic(_StringBuilder_append_String, java_lang_StringBuilder, append_name, String_StringBuilder_signature, F_R) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_StringBuilder_toString, java_lang_StringBuilder, toString_name, void_string_signature, F_R) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_StringBuffer_void, java_lang_StringBuffer, object_initializer_name, void_method_signature, F_R) \
|
|
|
|
do_intrinsic(_StringBuffer_int, java_lang_StringBuffer, object_initializer_name, int_void_signature, F_R) \
|
|
|
|
do_intrinsic(_StringBuffer_String, java_lang_StringBuffer, object_initializer_name, string_void_signature, F_R) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_StringBuffer_append_char, java_lang_StringBuffer, append_name, char_StringBuffer_signature, F_Y) \
|
|
|
|
do_intrinsic(_StringBuffer_append_int, java_lang_StringBuffer, append_name, int_StringBuffer_signature, F_Y) \
|
|
|
|
do_intrinsic(_StringBuffer_append_String, java_lang_StringBuffer, append_name, String_StringBuffer_signature, F_Y) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_StringBuffer_toString, java_lang_StringBuffer, toString_name, void_string_signature, F_Y) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_Integer_toString, java_lang_Integer, toString_name, int_String_signature, F_S) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_String_String, java_lang_String, object_initializer_name, string_void_signature, F_R) \
|
|
|
|
\
|
|
|
|
do_intrinsic(_Object_init, java_lang_Object, object_initializer_name, void_method_signature, F_R) \
|
|
|
|
/* (symbol object_initializer_name defined above) */ \
|
|
|
|
\
|
2010-05-01 02:42:18 -07:00
|
|
|
do_intrinsic(_invoke, java_lang_reflect_Method, invoke_name, object_object_array_object_signature, F_R) \
|
2009-07-21 16:56:06 -07:00
|
|
|
/* (symbols invoke_name and invoke_signature defined above) */ \
|
2012-07-24 10:51:00 -07:00
|
|
|
/* the polymorphic MH intrinsics must be in compact order, with _invokeGeneric first and _linkToInterface last */ \
|
|
|
|
do_intrinsic(_invokeGeneric, java_lang_invoke_MethodHandle, invoke_name, star_name, F_RN) \
|
|
|
|
do_intrinsic(_invokeBasic, java_lang_invoke_MethodHandle, invokeBasic_name, star_name, F_RN) \
|
|
|
|
do_intrinsic(_linkToVirtual, java_lang_invoke_MethodHandle, linkToVirtual_name, star_name, F_SN) \
|
|
|
|
do_intrinsic(_linkToStatic, java_lang_invoke_MethodHandle, linkToStatic_name, star_name, F_SN) \
|
|
|
|
do_intrinsic(_linkToSpecial, java_lang_invoke_MethodHandle, linkToSpecial_name, star_name, F_SN) \
|
|
|
|
do_intrinsic(_linkToInterface, java_lang_invoke_MethodHandle, linkToInterface_name, star_name, F_SN) \
|
|
|
|
/* special marker for bytecode generated for the JVM from a LambdaForm: */ \
|
|
|
|
do_intrinsic(_compiledLambdaForm, java_lang_invoke_MethodHandle, compiledLambdaForm_name, star_name, F_RN) \
|
2011-09-02 20:58:21 -07:00
|
|
|
\
|
2010-01-04 15:52:40 +01:00
|
|
|
/* unboxing methods: */ \
|
|
|
|
do_intrinsic(_booleanValue, java_lang_Boolean, booleanValue_name, void_boolean_signature, F_R) \
|
|
|
|
do_name( booleanValue_name, "booleanValue") \
|
|
|
|
do_intrinsic(_byteValue, java_lang_Byte, byteValue_name, void_byte_signature, F_R) \
|
|
|
|
do_name( byteValue_name, "byteValue") \
|
|
|
|
do_intrinsic(_charValue, java_lang_Character, charValue_name, void_char_signature, F_R) \
|
|
|
|
do_name( charValue_name, "charValue") \
|
|
|
|
do_intrinsic(_shortValue, java_lang_Short, shortValue_name, void_short_signature, F_R) \
|
|
|
|
do_name( shortValue_name, "shortValue") \
|
|
|
|
do_intrinsic(_intValue, java_lang_Integer, intValue_name, void_int_signature, F_R) \
|
|
|
|
do_name( intValue_name, "intValue") \
|
|
|
|
do_intrinsic(_longValue, java_lang_Long, longValue_name, void_long_signature, F_R) \
|
|
|
|
do_name( longValue_name, "longValue") \
|
|
|
|
do_intrinsic(_floatValue, java_lang_Float, floatValue_name, void_float_signature, F_R) \
|
|
|
|
do_name( floatValue_name, "floatValue") \
|
|
|
|
do_intrinsic(_doubleValue, java_lang_Double, doubleValue_name, void_double_signature, F_R) \
|
|
|
|
do_name( doubleValue_name, "doubleValue") \
|
|
|
|
\
|
|
|
|
/* boxing methods: */ \
|
|
|
|
do_name( valueOf_name, "valueOf") \
|
|
|
|
do_intrinsic(_Boolean_valueOf, java_lang_Boolean, valueOf_name, Boolean_valueOf_signature, F_S) \
|
|
|
|
do_name( Boolean_valueOf_signature, "(Z)Ljava/lang/Boolean;") \
|
|
|
|
do_intrinsic(_Byte_valueOf, java_lang_Byte, valueOf_name, Byte_valueOf_signature, F_S) \
|
|
|
|
do_name( Byte_valueOf_signature, "(B)Ljava/lang/Byte;") \
|
|
|
|
do_intrinsic(_Character_valueOf, java_lang_Character, valueOf_name, Character_valueOf_signature, F_S) \
|
|
|
|
do_name( Character_valueOf_signature, "(C)Ljava/lang/Character;") \
|
|
|
|
do_intrinsic(_Short_valueOf, java_lang_Short, valueOf_name, Short_valueOf_signature, F_S) \
|
|
|
|
do_name( Short_valueOf_signature, "(S)Ljava/lang/Short;") \
|
|
|
|
do_intrinsic(_Integer_valueOf, java_lang_Integer, valueOf_name, Integer_valueOf_signature, F_S) \
|
|
|
|
do_name( Integer_valueOf_signature, "(I)Ljava/lang/Integer;") \
|
|
|
|
do_intrinsic(_Long_valueOf, java_lang_Long, valueOf_name, Long_valueOf_signature, F_S) \
|
|
|
|
do_name( Long_valueOf_signature, "(J)Ljava/lang/Long;") \
|
|
|
|
do_intrinsic(_Float_valueOf, java_lang_Float, valueOf_name, Float_valueOf_signature, F_S) \
|
|
|
|
do_name( Float_valueOf_signature, "(F)Ljava/lang/Float;") \
|
|
|
|
do_intrinsic(_Double_valueOf, java_lang_Double, valueOf_name, Double_valueOf_signature, F_S) \
|
|
|
|
do_name( Double_valueOf_signature, "(D)Ljava/lang/Double;") \
|
2009-07-21 16:56:06 -07:00
|
|
|
\
|
2015-05-05 12:33:57 -07:00
|
|
|
/* forEachRemaining */ \
|
|
|
|
do_intrinsic(_forEachRemaining, java_util_stream_StreamsRangeIntSpliterator, forEachRemaining_name, forEachRemaining_signature, F_R) \
|
|
|
|
do_name( forEachRemaining_name, "forEachRemaining") \
|
|
|
|
do_name( forEachRemaining_signature, "(Ljava/util/function/IntConsumer;)V") \
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
/*end*/
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-21 16:56:06 -07:00
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
// Class vmSymbols
|
|
|
|
|
|
|
|
class vmSymbols: AllStatic {
|
2011-09-29 09:53:56 -07:00
|
|
|
friend class vmIntrinsics;
|
|
|
|
friend class VMStructs;
|
2015-12-14 17:02:02 -10:00
|
|
|
friend class JVMCIVMStructs;
|
2007-12-01 00:00:00 +00:00
|
|
|
public:
|
2011-01-27 16:11:27 -08:00
|
|
|
// enum for figuring positions and size of array holding Symbol*s
|
2007-12-01 00:00:00 +00:00
|
|
|
enum SID {
|
|
|
|
NO_SID = 0,
|
|
|
|
|
|
|
|
#define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME(name),
|
|
|
|
VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
|
|
|
|
#undef VM_SYMBOL_ENUM
|
|
|
|
|
|
|
|
SID_LIMIT,
|
|
|
|
|
|
|
|
#define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME(name) = VM_SYMBOL_ENUM_NAME(def),
|
|
|
|
VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM)
|
|
|
|
#undef VM_ALIAS_ENUM
|
|
|
|
|
|
|
|
FIRST_SID = NO_SID + 1
|
|
|
|
};
|
|
|
|
enum {
|
|
|
|
log2_SID_LIMIT = 10 // checked by an assert at start-up
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
// The symbol array
|
2011-01-27 16:11:27 -08:00
|
|
|
static Symbol* _symbols[];
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
// Field signatures indexed by BasicType.
|
2011-01-27 16:11:27 -08:00
|
|
|
static Symbol* _type_signatures[T_VOID+1];
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
// Initialization
|
|
|
|
static void initialize(TRAPS);
|
|
|
|
// Accessing
|
2011-01-27 16:11:27 -08:00
|
|
|
#define VM_SYMBOL_DECLARE(name, ignore) \
|
|
|
|
static Symbol* name() { \
|
|
|
|
return _symbols[VM_SYMBOL_ENUM_NAME(name)]; \
|
|
|
|
}
|
2007-12-01 00:00:00 +00:00
|
|
|
VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE)
|
|
|
|
#undef VM_SYMBOL_DECLARE
|
|
|
|
|
2011-01-27 16:11:27 -08:00
|
|
|
// Sharing support
|
|
|
|
static void symbols_do(SymbolClosure* f);
|
6964458: Reimplement class meta-data storage to use native memory
Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Tom Rodriguez <tom.rodriguez@oracle.com>
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
2012-09-01 13:25:18 -04:00
|
|
|
static void serialize(SerializeClosure* soc);
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2011-01-27 16:11:27 -08:00
|
|
|
static Symbol* type_signature(BasicType t) {
|
2007-12-01 00:00:00 +00:00
|
|
|
assert((uint)t < T_VOID+1, "range check");
|
|
|
|
assert(_type_signatures[t] != NULL, "domain check");
|
|
|
|
return _type_signatures[t];
|
|
|
|
}
|
|
|
|
// inverse of type_signature; returns T_OBJECT if s is not recognized
|
2015-12-08 20:04:03 +01:00
|
|
|
static BasicType signature_type(const Symbol* s);
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2011-01-27 16:11:27 -08:00
|
|
|
static Symbol* symbol_at(SID id) {
|
2007-12-01 00:00:00 +00:00
|
|
|
assert(id >= FIRST_SID && id < SID_LIMIT, "oob");
|
|
|
|
assert(_symbols[id] != NULL, "init");
|
|
|
|
return _symbols[id];
|
|
|
|
}
|
|
|
|
|
|
|
|
// Returns symbol's SID if one is assigned, else NO_SID.
|
2015-12-08 20:04:03 +01:00
|
|
|
static SID find_sid(const Symbol* symbol);
|
2011-03-11 22:33:47 -08:00
|
|
|
static SID find_sid(const char* symbol_name);
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
#ifndef PRODUCT
|
|
|
|
// No need for this in the product:
|
|
|
|
static const char* name_for(SID sid);
|
|
|
|
#endif //PRODUCT
|
|
|
|
};
|
|
|
|
|
|
|
|
// VM Intrinsic ID's uniquely identify some very special methods
|
|
|
|
class vmIntrinsics: AllStatic {
|
|
|
|
friend class vmSymbols;
|
|
|
|
friend class ciObjectFactory;
|
|
|
|
|
|
|
|
public:
|
|
|
|
// Accessing
|
|
|
|
enum ID {
|
|
|
|
_none = 0, // not an intrinsic (default answer)
|
|
|
|
|
|
|
|
#define VM_INTRINSIC_ENUM(id, klass, name, sig, flags) id,
|
|
|
|
VM_INTRINSICS_DO(VM_INTRINSIC_ENUM,
|
|
|
|
VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE)
|
|
|
|
#undef VM_INTRINSIC_ENUM
|
|
|
|
|
|
|
|
ID_LIMIT,
|
2015-02-10 21:32:05 +01:00
|
|
|
LAST_COMPILER_INLINE = _getAndSetObject,
|
2012-07-24 10:51:00 -07:00
|
|
|
FIRST_MH_SIG_POLY = _invokeGeneric,
|
|
|
|
FIRST_MH_STATIC = _linkToVirtual,
|
|
|
|
LAST_MH_SIG_POLY = _linkToInterface,
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
FIRST_ID = _none + 1
|
|
|
|
};
|
|
|
|
|
|
|
|
enum Flags {
|
|
|
|
// AccessFlags syndromes relevant to intrinsics.
|
|
|
|
F_none = 0,
|
2009-11-12 09:24:21 -08:00
|
|
|
F_R, // !static ?native !synchronized (R="regular")
|
|
|
|
F_S, // static ?native !synchronized
|
|
|
|
F_Y, // !static ?native synchronized
|
|
|
|
F_RN, // !static native !synchronized
|
|
|
|
F_SN, // static native !synchronized
|
2010-01-04 15:52:40 +01:00
|
|
|
F_RNY, // !static native synchronized
|
|
|
|
|
|
|
|
FLAG_LIMIT
|
|
|
|
};
|
|
|
|
enum {
|
|
|
|
log2_FLAG_LIMIT = 4 // checked by an assert at start-up
|
2007-12-01 00:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
|
|
static ID ID_from(int raw_id) {
|
|
|
|
assert(raw_id >= (int)_none && raw_id < (int)ID_LIMIT,
|
|
|
|
"must be a valid intrinsic ID");
|
|
|
|
return (ID)raw_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char* name_at(ID id);
|
|
|
|
|
2010-01-04 15:52:40 +01:00
|
|
|
private:
|
|
|
|
static ID find_id_impl(vmSymbols::SID holder,
|
|
|
|
vmSymbols::SID name,
|
|
|
|
vmSymbols::SID sig,
|
|
|
|
jshort flags);
|
|
|
|
|
|
|
|
public:
|
2007-12-01 00:00:00 +00:00
|
|
|
// Given a method's class, name, signature, and access flags, report its ID.
|
|
|
|
static ID find_id(vmSymbols::SID holder,
|
|
|
|
vmSymbols::SID name,
|
|
|
|
vmSymbols::SID sig,
|
2010-01-04 15:52:40 +01:00
|
|
|
jshort flags) {
|
|
|
|
ID id = find_id_impl(holder, name, sig, flags);
|
|
|
|
#ifdef ASSERT
|
|
|
|
// ID _none does not hold the following asserts.
|
|
|
|
if (id == _none) return id;
|
|
|
|
#endif
|
|
|
|
assert( class_for(id) == holder, "correct id");
|
|
|
|
assert( name_for(id) == name, "correct id");
|
|
|
|
assert(signature_for(id) == sig, "correct id");
|
|
|
|
return id;
|
|
|
|
}
|
2007-12-01 00:00:00 +00:00
|
|
|
|
6964458: Reimplement class meta-data storage to use native memory
Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Tom Rodriguez <tom.rodriguez@oracle.com>
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
2012-09-01 13:25:18 -04:00
|
|
|
static void verify_method(ID actual_id, Method* m) PRODUCT_RETURN;
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2010-01-04 15:52:40 +01:00
|
|
|
// Find out the symbols behind an intrinsic:
|
2007-12-01 00:00:00 +00:00
|
|
|
static vmSymbols::SID class_for(ID id);
|
|
|
|
static vmSymbols::SID name_for(ID id);
|
|
|
|
static vmSymbols::SID signature_for(ID id);
|
|
|
|
static Flags flags_for(ID id);
|
|
|
|
|
|
|
|
static const char* short_name_as_C_string(ID id, char* buf, int size);
|
2009-07-21 16:56:06 -07:00
|
|
|
|
2010-01-04 15:52:40 +01:00
|
|
|
// Wrapper object methods:
|
|
|
|
static ID for_boxing(BasicType type);
|
|
|
|
static ID for_unboxing(BasicType type);
|
2010-01-05 15:21:25 +01:00
|
|
|
|
|
|
|
// Raw conversion:
|
|
|
|
static ID for_raw_conversion(BasicType src, BasicType dest);
|
2015-07-28 19:20:42 +02:00
|
|
|
|
|
|
|
// The methods below provide information related to compiling intrinsics.
|
|
|
|
|
|
|
|
// (1) Information needed by the C1 compiler.
|
|
|
|
|
|
|
|
static bool preserves_state(vmIntrinsics::ID id);
|
|
|
|
static bool can_trap(vmIntrinsics::ID id);
|
|
|
|
|
|
|
|
// (2) Information needed by the C2 compiler.
|
|
|
|
|
|
|
|
// Returns true if the intrinsic for method 'method' will perform a virtual dispatch.
|
|
|
|
static bool does_virtual_dispatch(vmIntrinsics::ID id);
|
|
|
|
// A return value larger than 0 indicates that the intrinsic for method
|
|
|
|
// 'method' requires predicated logic.
|
|
|
|
static int predicates_needed(vmIntrinsics::ID id);
|
|
|
|
|
2015-08-03 09:39:29 +02:00
|
|
|
// Returns true if a compiler intrinsic is disabled by command-line flags
|
|
|
|
// and false otherwise.
|
2015-11-05 19:31:57 +01:00
|
|
|
static bool is_disabled_by_flags(const methodHandle& method);
|
2007-12-01 00:00:00 +00:00
|
|
|
};
|
2010-11-23 13:22:55 -08:00
|
|
|
|
|
|
|
#endif // SHARE_VM_CLASSFILE_VMSYMBOLS_HPP
|