equal
deleted
inserted
replaced
856 } |
856 } |
857 |
857 |
858 |
858 |
859 // private void CompilerToVM.registerNatives() |
859 // private void CompilerToVM.registerNatives() |
860 JVM_ENTRY_NO_ENV(void, JVM_RegisterJVMCINatives(JNIEnv *env, jclass c2vmClass)) |
860 JVM_ENTRY_NO_ENV(void, JVM_RegisterJVMCINatives(JNIEnv *env, jclass c2vmClass)) |
861 |
|
862 #ifdef _LP64 |
|
863 #ifndef TARGET_ARCH_sparc |
|
864 uintptr_t heap_end = (uintptr_t) Universe::heap()->reserved_region().end(); |
|
865 uintptr_t allocation_end = heap_end + ((uintptr_t)16) * 1024 * 1024 * 1024; |
|
866 guarantee(heap_end < allocation_end, "heap end too close to end of address space (might lead to erroneous TLAB allocations)"); |
|
867 #endif // TARGET_ARCH_sparc |
|
868 #else |
|
869 fatal("check TLAB allocation code for address space conflicts"); |
|
870 #endif |
|
871 |
|
872 JNI_JVMCIENV(thread, env); |
861 JNI_JVMCIENV(thread, env); |
873 |
862 |
874 if (!EnableJVMCI) { |
863 if (!EnableJVMCI) { |
875 JVMCI_THROW_MSG(InternalError, "JVMCI is not enabled"); |
864 JVMCI_THROW_MSG(InternalError, "JVMCI is not enabled"); |
876 } |
865 } |