History log of /system/core/libpixelflinger/codeflinger/CodeCache.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8e0e372a388434a0553810e2b958e59a26a6bd96 14-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Set PROT_EXEC on the whole pixelflinger code cache.

The pointer difference between word pointers is a number
of words, and it needs to be multiplied by the size of a word
to get a proper byte size.

Without this, we tend to see crashes when the code crosses
a page boundary.

Bug: 3026204
Bug: 3097482
Change-Id: I37776d26d5afcdb1da71680de02fbb95e6548371
/system/core/libpixelflinger/codeflinger/CodeCache.cpp
beeeee705bcf16d705748713ea40dca3486cc7b7 07-May-2010 Nick Kralevich <nnk@google.com> Allow pixelflinger to work when NX (No Execute) is enabled.

Instead of allocating memory from the (non executable) heap,
allocate memory using mspace and ensure that we use mprotect
to mark it as PROT_EXEC. This allows pixelflinger to
continue to work even when NX protections are enabled.

Testing: Using the ApiDemos market app, verify that
Apidemos -> Graphics -> OpenGL ES -> GLSurfaceView
works when "adb shell setprop debug.egl.hw 0" is set.

Change-Id: Ib569cd2543c6fa25688ee76325a712bc2347450b
/system/core/libpixelflinger/codeflinger/CodeCache.cpp
dd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/libpixelflinger/codeflinger/CodeCache.cpp
e54eebbf1a908d65ee8cf80bab62821c05666d70 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/libpixelflinger/codeflinger/CodeCache.cpp
4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/core/libpixelflinger/codeflinger/CodeCache.cpp