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

Method getLineNumber

src/lookup.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include "vmStructs.h"
13
14jint MethodInfo::getLineNumber(jint bci) {
15 if (_line_number_table_size == 0) {
16 return 0;
17 }
18
19 int i = 1;
20 while (i < _line_number_table_size && bci >= _line_number_table[i].start_location) {
21 i++;
22 }
23 return _line_number_table[i - 1].line_number;
24}
25
26MethodMap::~MethodMap() {
27 jvmtiEnv* jvmti = VM::jvmti();

Callers 2

tryGetMethod · 0.80
writeStackTracesMethod · 0.80

Calls

no outgoing calls

Tested by 1

tryGetMethod · 0.64