Skip to content

Commit 9349714

Browse files
committed
Delegate 'is_marked' to 'read_mark() != 0'
1 parent 092ed9a commit 9349714

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

ddprof-lib/src/main/cpp/codeCache.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,7 @@ class NativeFunc {
7575
}
7676

7777
static bool is_marked(const char *name) {
78-
if (name == nullptr) {
79-
return false;
80-
}
81-
NativeFunc* func = from(name);
82-
if (!is_aligned(func, sizeof(func))) {
83-
return false;
84-
}
85-
return func->_mark != 0;
78+
return read_mark(name) != 0;
8679
}
8780

8881
static char read_mark(const char* name) {

0 commit comments

Comments
 (0)