MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / readSymbol

Method readSymbol

src/vmStructs.cpp:123–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122
123uintptr_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
133void VMStructs::init(CodeCache* libjvm) {

Callers

nothing calls this directly

Calls 1

findSymbolMethod · 0.80

Tested by

no test coverage detected