From 65852761e37f938409b85a901a0fb1d98d361023 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 14 Jun 2011 13:51:55 -0700 Subject: Allow native methods to declare they don't need a JNIEnv*. Bug: 3069458 Change-Id: Ic9a6c562c5abf9607dd4c8a71b0d1e389e6d340b --- vm/oo/Object.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm/oo/Object.h') diff --git a/vm/oo/Object.h b/vm/oo/Object.h index 5858e8613..d3c3f0a97 100644 --- a/vm/oo/Object.h +++ b/vm/oo/Object.h @@ -533,6 +533,9 @@ struct Method { */ DalvikBridgeFunc nativeFunc; + /* Whether this native method needs a JNIEnv*. */ + bool needsJniEnv; + /* * Register map data, if available. This will point into the DEX file * if the data was computed during pre-verification, or into the -- cgit v1.2.3