| 566 | } |
| 567 | |
| 568 | void VMStructs::patchSafeFetch() { |
| 569 | // Workarounds for JDK-8307549 and JDK-8321116 |
| 570 | if (WX_MEMORY && VM::hotspot_version() == 17) { |
| 571 | void** entry = (void**)_libjvm->findSymbol("_ZN12StubRoutines18_safefetch32_entryE"); |
| 572 | if (entry != NULL) { |
| 573 | *entry = (void*)SafeAccess::load32; |
| 574 | } |
| 575 | } else if (WX_MEMORY && VM::hotspot_version() == 11) { |
| 576 | void** entry = (void**)_libjvm->findSymbol("_ZN12StubRoutines17_safefetchN_entryE"); |
| 577 | if (entry != NULL) { |
| 578 | *entry = (void*)SafeAccess::load; |
| 579 | } |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | void VMStructs::initTLS(void* vm_thread) { |
| 584 | for (int i = 0; i < 1024; i++) { |
nothing calls this directly
no test coverage detected