Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fiddle with CBB toggling to try to avoid weird Android corner-cases #1263

Merged
merged 4 commits into from Dec 23, 2020

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Dec 22, 2020

This is mildly related to part of the recent Android discussions on Gitter ;).


This change is Reviewable

Not that it changes much in practice, apparently.
Most notably, allowing to disable it on startup in reader.lua,
without having to do an extra jit.flush, because it has a tendency to
make the already complicated mcode allocation situation worse on that platform.
ffi/blitbuffer.lua Outdated Show resolved Hide resolved
Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

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

lgtm

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
@NiLuJe NiLuJe merged commit 11de43f into koreader:master Dec 23, 2020
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Dec 23, 2020
NiLuJe added a commit to koreader/koreader that referenced this pull request Dec 23, 2020
* When the CBB is disabled, attempt to apply the JIT tweaks earlier,
avoiding the JIT code flush in the process

* Drop debug prints

* Bump base

koreader/koreader-base#1263
koreader/koreader-base#1264
roygbyte pushed a commit to roygbyte/koreader-base that referenced this pull request Mar 3, 2022
…oreader#1263)

* Handle inversion in BB4:fill

Not that it changes much in practice, apparently.

* Rejig the CBB toggle to allow greater flexibility in front

Most notably, allowing to disable it on startup in reader.lua,
without having to do an extra jit.flush, because it has a tendency to
make the already complicated mcode allocation situation worse on Android.
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.

None yet

2 participants