| 121 | |
| 122 | |
| 123 | uintptr_t VMStructs::readSymbol(const char* symbol_name) { |
| 124 | const void* symbol = _libjvm->findSymbol(symbol_name); |
| 125 | if (symbol == NULL) { |
| 126 | // Avoid JVM crash in case of missing symbols |
| 127 | return 0; |
| 128 | } |
| 129 | return *(uintptr_t*)symbol; |
| 130 | } |
| 131 | |
| 132 | // Run at agent load time |
| 133 | void VMStructs::init(CodeCache* libjvm) { |
nothing calls this directly
no test coverage detected