Skip to content

Kitkat fix - #9

Merged
kmagiera merged 4 commits into
masterfrom
kitkat-fix
Aug 2, 2017
Merged

Kitkat fix#9
kmagiera merged 4 commits into
masterfrom
kitkat-fix

Conversation

@ukasiu

@ukasiu ukasiu commented Aug 1, 2017

Copy link
Copy Markdown
Contributor

fixes #8

Comment thread patches/jsc.patch Outdated
#include "DebugHeap.h"
#include "BAssert.h"
#include "BPlatform.h"
+#include <posix_memalign.h>

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@kmagiera kmagiera left a comment

Copy link
Copy Markdown
Member

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

kmagiera commented Aug 2, 2017 via email

Copy link
Copy Markdown
Member

@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

2 participants