11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "jni.h"
27 #include "jvm.h"
28 #include "classfile/javaClasses.inline.hpp"
29 #include "classfile/systemDictionary.hpp"
30 #include "classfile/vmSymbols.hpp"
31 #include "memory/guardedMemory.hpp"
32 #include "oops/instanceKlass.hpp"
33 #include "oops/oop.inline.hpp"
34 #include "oops/symbol.hpp"
35 #include "prims/jniCheck.hpp"
36 #include "prims/jvm_misc.hpp"
37 #include "runtime/fieldDescriptor.hpp"
38 #include "runtime/handles.hpp"
39 #include "runtime/interfaceSupport.hpp"
40 #include "runtime/jfieldIDWorkaround.hpp"
41 #include "runtime/jniHandles.inline.hpp"
42 #include "runtime/thread.inline.hpp"
43
44 // Complain every extra number of unplanned local refs
45 #define CHECK_JNI_LOCAL_REF_CAP_WARN_THRESHOLD 32
46
47 // Heap objects are allowed to be directly referenced only in VM code,
48 // not in native code.
49
50 #define ASSERT_OOPS_ALLOWED \
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "jni.h"
27 #include "jvm.h"
28 #include "classfile/javaClasses.inline.hpp"
29 #include "classfile/systemDictionary.hpp"
30 #include "classfile/vmSymbols.hpp"
31 #include "memory/allocation.inline.hpp"
32 #include "memory/guardedMemory.hpp"
33 #include "oops/instanceKlass.hpp"
34 #include "oops/oop.inline.hpp"
35 #include "oops/symbol.hpp"
36 #include "prims/jniCheck.hpp"
37 #include "prims/jvm_misc.hpp"
38 #include "runtime/fieldDescriptor.hpp"
39 #include "runtime/handles.hpp"
40 #include "runtime/interfaceSupport.hpp"
41 #include "runtime/jfieldIDWorkaround.hpp"
42 #include "runtime/jniHandles.inline.hpp"
43 #include "runtime/thread.inline.hpp"
44
45 // Complain every extra number of unplanned local refs
46 #define CHECK_JNI_LOCAL_REF_CAP_WARN_THRESHOLD 32
47
48 // Heap objects are allowed to be directly referenced only in VM code,
49 // not in native code.
50
51 #define ASSERT_OOPS_ALLOWED \
|