equal
deleted
inserted
replaced
393 // Previously this function calculated the exact address of this |
393 // Previously this function calculated the exact address of this |
394 // thread's serialize page, and checked if the faulting address |
394 // thread's serialize page, and checked if the faulting address |
395 // was equal. However, some platforms mask off faulting addresses |
395 // was equal. However, some platforms mask off faulting addresses |
396 // to the page size, so now we just check that the address is |
396 // to the page size, so now we just check that the address is |
397 // within the page. This makes the thread argument unnecessary, |
397 // within the page. This makes the thread argument unnecessary, |
398 // but we retain the NULL check to preserve existing behaviour. |
398 // but we retain the NULL check to preserve existing behavior. |
399 if (thread == NULL) return false; |
399 if (thread == NULL) return false; |
400 address page = (address) _mem_serialize_page; |
400 address page = (address) _mem_serialize_page; |
401 return addr >= page && addr < (page + os::vm_page_size()); |
401 return addr >= page && addr < (page + os::vm_page_size()); |
402 } |
402 } |
403 |
403 |
538 // Find out whether the pc is in the static code for jvm.dll/libjvm.so. |
538 // Find out whether the pc is in the static code for jvm.dll/libjvm.so. |
539 static bool address_is_in_vm(address addr); |
539 static bool address_is_in_vm(address addr); |
540 |
540 |
541 // Loads .dll/.so and |
541 // Loads .dll/.so and |
542 // in case of error it checks if .dll/.so was built for the |
542 // in case of error it checks if .dll/.so was built for the |
543 // same architecture as Hotspot is running on |
543 // same architecture as HotSpot is running on |
544 static void* dll_load(const char *name, char *ebuf, int ebuflen); |
544 static void* dll_load(const char *name, char *ebuf, int ebuflen); |
545 |
545 |
546 // lookup symbol in a shared library |
546 // lookup symbol in a shared library |
547 static void* dll_lookup(void* handle, const char* name); |
547 static void* dll_lookup(void* handle, const char* name); |
548 |
548 |