src/hotspot/share/jvmci/jvmciRuntime.cpp
changeset 58015 dd84de796f2c
parent 57957 4364524f8cac
child 58041 d8902e9c307c
equal deleted inserted replaced
58014:aba258cd7df8 58015:dd84de796f2c
   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   }