Skip to content

Commit

Permalink
Merge pull request #196 from KwaiAppTeam/bugfix/avoid_native_leak_loo…
Browse files Browse the repository at this point in the history
…p_call

Always static dependency libc++
  • Loading branch information
AndroidInternal authored Aug 30, 2022
2 parents ed1f15f + 724045b commit 67e51b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android.useAndroidX=true
android.enableJetifier=true

GROUP=com.kuaishou.koom
VERSION_NAME=2.2.0
VERSION_NAME=2.2.1

POM_URL=https://github.com/KwaiAppTeam/KOOM
POM_SCM_URL=https://github.com/KwaiAppTeam/KOOM/tree/master
Expand Down
5 changes: 4 additions & 1 deletion koom-native-leak/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ android {
dimension "stl_mode"
ext.artifactIdSuffix = ''
externalNativeBuild {
// Because koom-native-leak hook memory allocator, and hook implementation using some apis(may invoke memory allocator) from
// libc++, then infinite recursive call lead stack overflow. so we always using "c++_static", and this increase package size,
// you can dynamic delivery native-leak module using plugin technology
cmake {
arguments = ["-DANDROID_STL=c++_shared"]
arguments = ["-DANDROID_STL=c++_static"]
}
}
}
Expand Down

0 comments on commit 67e51b2

Please sign in to comment.