hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
changeset 27476 6ac67737d359
parent 26576 a9429d24d429
child 27685 26a697375de3
equal deleted inserted replaced
27474:2b061fd571eb 27476:6ac67737d359
   908    * If we are embedded in an app other than launcher (initial != main stack),
   908    * If we are embedded in an app other than launcher (initial != main stack),
   909    * we don't have much control or understanding of the address space, just let it slide.
   909    * we don't have much control or understanding of the address space, just let it slide.
   910    */
   910    */
   911   char* hint = (char*) (Linux::initial_thread_stack_bottom() -
   911   char* hint = (char*) (Linux::initial_thread_stack_bottom() -
   912                         ((StackYellowPages + StackRedPages + 1) * page_size));
   912                         ((StackYellowPages + StackRedPages + 1) * page_size));
   913   char* codebuf = os::reserve_memory(page_size, hint);
   913   char* codebuf = os::attempt_reserve_memory_at(page_size, hint);
   914   if ( (codebuf == NULL) || (!os::commit_memory(codebuf, page_size, true)) ) {
   914   if ( (codebuf == NULL) || (!os::commit_memory(codebuf, page_size, true)) ) {
   915     return; // No matter, we tried, best effort.
   915     return; // No matter, we tried, best effort.
   916   }
   916   }
   917 
   917 
   918   MemTracker::record_virtual_memory_type((address)codebuf, mtInternal);
   918   MemTracker::record_virtual_memory_type((address)codebuf, mtInternal);