Skip to content

Commit

Permalink
android: Handle the CMC GC strategy
Browse files Browse the repository at this point in the history
Fixes #323.
  • Loading branch information
mbricchi authored and oleavr committed Jul 12, 2024
1 parent 5b32afc commit 6278d00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,11 @@ function ensureArtKnowsHowToHandleReplacementMethods (vm) {

if (exportName !== null) {
Interceptor.attach(Module.getExportByName('libart.so', exportName), artController.hooks.Gc.copyingPhase);

const collectorCMC = Module.findExportByName('libart.so', '_ZN3art2gc9collector11MarkCompact15CompactionPhaseEv');
if (collectorCMC !== null) {
Interceptor.attach(collectorCMC, artController.hooks.Gc.copyingPhase);
}
}
}

Expand Down

0 comments on commit 6278d00

Please sign in to comment.