Skip to content

Commit d024cc4

Browse files
correct base
1 parent 4eaf00e commit d024cc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/symbols_macos.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void Symbols::parseLibraries(CodeCacheArray* array, bool kernel_symbols) {
257257
const char* vmaddr_slide = (const char*)_dyld_get_image_vmaddr_slide(i);
258258

259259
CodeCache* cc = new CodeCache(path, count);
260-
cc->setTextBase(vmaddr_slide);
260+
cc->setTextBase((char*)image_base);
261261

262262
UnloadProtection handle(cc);
263263
if (handle.isValid()) {

test/native/libs/jninativestacks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int main() {
8181
asprof_init();
8282

8383
asprof_execute_t asprof_execute = dlsym(lib, "asprof_execute");
84-
asprof_error_t err = asprof_execute("start,event=cpu,collapsed,file=output.collapsed,cstack=vm", NULL);
84+
asprof_error_t err = asprof_execute("start,event=cpu,collapsed,file=output.collapsed,features=pcaddr,cstack=vm", NULL);
8585

8686
fprintf(stderr, "%.02f\n", doCpuTask());
8787

0 commit comments

Comments
 (0)