src/share/vm/prims/jniCheck.hpp

changeset 4037
da91efe96a93
parent 2314
f95d63e2154a
child 4492
8b46b0196eb0
equal deleted inserted replaced
4036:36d1d483d5d6 4037:da91efe96a93
1 /* 1 /*
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
48 48
49 class jniCheck : public AllStatic { 49 class jniCheck : public AllStatic {
50 public: 50 public:
51 static oop validate_handle(JavaThread* thr, jobject obj); 51 static oop validate_handle(JavaThread* thr, jobject obj);
52 static oop validate_object(JavaThread* thr, jobject obj); 52 static oop validate_object(JavaThread* thr, jobject obj);
53 static klassOop validate_class(JavaThread* thr, jclass clazz, bool allow_primitive = false); 53 static Klass* validate_class(JavaThread* thr, jclass clazz, bool allow_primitive = false);
54 static void validate_class_descriptor(JavaThread* thr, const char* name); 54 static void validate_class_descriptor(JavaThread* thr, const char* name);
55 static void validate_throwable_klass(JavaThread* thr, klassOop klass); 55 static void validate_throwable_klass(JavaThread* thr, Klass* klass);
56 static void validate_call_object(JavaThread* thr, jobject obj, jmethodID method_id); 56 static void validate_call_object(JavaThread* thr, jobject obj, jmethodID method_id);
57 static void validate_call_class(JavaThread* thr, jclass clazz, jmethodID method_id); 57 static void validate_call_class(JavaThread* thr, jclass clazz, jmethodID method_id);
58 static methodOop validate_jmethod_id(JavaThread* thr, jmethodID method_id); 58 static Method* validate_jmethod_id(JavaThread* thr, jmethodID method_id);
59 }; 59 };
60 60
61 #endif // SHARE_VM_PRIMS_JNICHECK_HPP 61 #endif // SHARE_VM_PRIMS_JNICHECK_HPP

mercurial