Skip to content

Conversation

@ukasiu
Copy link
Contributor

@ukasiu ukasiu commented Aug 1, 2017

fixes #8

#include "DebugHeap.h"
#include "BAssert.h"
#include "BPlatform.h"
+#include <posix_memalign.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are patching this I'd actually prefer if we just remove the place where posix_memalign is being called and add an assert(false) there to make sure the app would crash when it gets to that place (we claim that this code is not being used as it is only used when JSC debugging is enabled)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just implement posix_memalign as assert(false)?

#endif

#endif // !__LP64__
#include_next <math.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add small comment explaning what's going on with this file

Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left few comments inline, can you take a look @ukasiu ?

@kmagiera
Copy link
Member

kmagiera commented Aug 2, 2017 via email

@kmagiera kmagiera merged commit 7d52f5c into master Aug 2, 2017
@kmagiera kmagiera deleted the kitkat-fix branch August 2, 2017 11:15
kmagiera added a commit that referenced this pull request Aug 2, 2017
@luoyushouchai luoyushouchai mentioned this pull request Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linking errors on Android 4.4

3 participants