-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
need to refactor the method and merge stacks to use custom types sinc…
…e it would make more since to have them contain more information
- Loading branch information
Showing
6 changed files
with
136 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,8 @@ extern "C" void* red_user_end_branchable_frame(uint64_t *frame_id, void *ret_add | |
|
||
extern "C" void *__real_malloc(size_t); | ||
|
||
#pragma GCC visibility push(default) | ||
|
||
extern "C" void redmagic_start() { | ||
UnprotectMalloc upm; | ||
red_printf("Using redmagic jit by Matthew Francis-Landau <[email protected]>\n"); | ||
|
@@ -168,6 +170,8 @@ extern "C" void redmagic_disable_branch(void *id) { | |
manager->disable_branch(id); | ||
} | ||
|
||
#pragma GCC visibility pop | ||
|
||
static const char *avoid_inlining_methods[] = { | ||
// inlining the allocator doesn't really help since it will have a lot of branching | ||
// in trying to find where there is open memory | ||
|
@@ -378,7 +382,9 @@ Manager::Manager() { | |
} | ||
|
||
Manager::~Manager() { | ||
#ifdef CONF_VERBOSE | ||
red_printf("Manager::~Manager\n"); | ||
#endif | ||
} | ||
|
||
void Manager::do_not_trace_method(void *addr) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters