diff options
-rw-r--r-- | include/cutils/compiler.h | 12 | ||||
-rw-r--r-- | rootdir/init.rc | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/cutils/compiler.h b/include/cutils/compiler.h index 09112d5..70f884a 100644 --- a/include/cutils/compiler.h +++ b/include/cutils/compiler.h @@ -29,4 +29,16 @@ # define CC_UNLIKELY( exp ) (__builtin_expect( !!(exp), 0 )) #endif +/** + * exports marked symbols + * + * if used on a C++ class declaration, this macro must be inserted + * after the "class" keyword. For instance: + * + * template <typename TYPE> + * class ANDROID_API Singleton { } + */ + +#define ANDROID_API __attribute__((visibility("default"))) + #endif // ANDROID_CUTILS_COMPILER_H diff --git a/rootdir/init.rc b/rootdir/init.rc index 10c0f12..af4967e 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -64,6 +64,7 @@ loglevel 3 write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000 write /proc/sys/kernel/sched_compat_yield 1 write /proc/sys/kernel/sched_child_runs_first 0 + write /proc/sys/kernel/randomize_va_space 2 # Create cgroup mount points for process groups mkdir /dev/cpuctl |