Mercurial > hg > graal-jvmci-8
diff src/share/vm/jvmci/jvmciCompilerToVM.hpp @ 23994:ebce30b702eb
[GR-2538] reduced memory overhead of HotSpotVMConfigStore
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 02 Feb 2017 23:58:25 +0100 |
parents | a67f4d28935f |
children | 9a740aa0d87b |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciCompilerToVM.hpp Tue Jan 31 22:59:16 2017 +0100 +++ b/src/share/vm/jvmci/jvmciCompilerToVM.hpp Thu Feb 02 23:58:25 2017 +0100 @@ -68,6 +68,15 @@ static int vm_page_size; + static int sizeof_vtableEntry; + static int sizeof_ExceptionTableElement; + static int sizeof_LocalVariableTableElement; + static int sizeof_ConstantPool; + static int sizeof_SymbolPointer; + static int sizeof_narrowKlass; + static int sizeof_arrayOopDesc; + static int sizeof_BasicLock; + static address CodeCache_low_bound; static address CodeCache_high_bound; @@ -88,6 +97,20 @@ } }; + static bool cstring_equals(const char* const& s0, const char* const& s1) { + return strcmp(s0, s1) == 0; + } + + static unsigned cstring_hash(const char* const& s) { + int h = 0; + const char* p = s; + while (*p != '\0') { + h = 31 * h + *p; + p++; + } + return h; + } + static JNINativeMethod methods[]; static objArrayHandle initialize_intrinsics(TRAPS);