56 #include "services/management.hpp" |
56 #include "services/management.hpp" |
57 #include "services/memoryService.hpp" |
57 #include "services/memoryService.hpp" |
58 #include "services/memTracker.hpp" |
58 #include "services/memTracker.hpp" |
59 #include "utilities/events.hpp" |
59 #include "utilities/events.hpp" |
60 #include "utilities/stack.inline.hpp" |
60 #include "utilities/stack.inline.hpp" |
|
61 #if INCLUDE_JFR |
|
62 #include "jfr/jfr.hpp" |
|
63 #endif // INCLUDE_JFR |
61 |
64 |
62 #include <math.h> |
65 #include <math.h> |
63 |
66 |
64 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
67 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
65 |
68 |
2462 |
2465 |
2463 // Now adjust pointers in remaining weak roots. (All of which should |
2466 // Now adjust pointers in remaining weak roots. (All of which should |
2464 // have been cleared if they pointed to non-surviving objects.) |
2467 // have been cleared if they pointed to non-surviving objects.) |
2465 // Global (weak) JNI handles |
2468 // Global (weak) JNI handles |
2466 JNIHandles::weak_oops_do(adjust_pointer_closure()); |
2469 JNIHandles::weak_oops_do(adjust_pointer_closure()); |
|
2470 JFR_ONLY(Jfr::weak_oops_do(adjust_pointer_closure())); |
2467 |
2471 |
2468 CodeBlobToOopClosure adjust_from_blobs(adjust_pointer_closure(), CodeBlobToOopClosure::FixRelocations); |
2472 CodeBlobToOopClosure adjust_from_blobs(adjust_pointer_closure(), CodeBlobToOopClosure::FixRelocations); |
2469 CodeCache::blobs_do(&adjust_from_blobs); |
2473 CodeCache::blobs_do(&adjust_from_blobs); |
2470 StringTable::oops_do(adjust_pointer_closure()); |
2474 StringTable::oops_do(adjust_pointer_closure()); |
2471 ref_processor()->weak_oops_do(adjust_pointer_closure()); |
2475 ref_processor()->weak_oops_do(adjust_pointer_closure()); |