equal
deleted
inserted
replaced
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); |