jdk/src/macosx/javavm/export/jni_md.h
author dsimms
Wed, 11 Jun 2014 12:09:12 +0200
changeset 25056 5ad92b0d1beb
parent 21129 e1f4474a6723
permissions -rw-r--r--
6311046: -Xcheck:jni should support checking of GetPrimitiveArrayCritical. Summary: Wrapped memory with standard bounds checking "GuardedMemory". Reviewed-by: zgu, fparain, dcubed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21129
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     1
/*
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     2
 * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     4
 *
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    10
 *
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    15
 * accompanied this code).
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    16
 *
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    20
 *
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    23
 * questions.
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    24
 */
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    25
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    26
#ifndef _JAVASOFT_JNI_MD_H_
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    27
#define _JAVASOFT_JNI_MD_H_
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    28
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    29
#define JNIEXPORT     __attribute__((visibility("default")))
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    30
#define JNIIMPORT     __attribute__((visibility("default")))
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    31
#define JNICALL
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    32
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    33
typedef int jint;
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    34
#ifdef _LP64 /* 64-bit */
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    35
typedef long jlong;
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    36
#else
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    37
typedef long long jlong;
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    38
#endif
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    39
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    40
typedef signed char jbyte;
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    41
e1f4474a6723 8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff changeset
    42
#endif /* !_JAVASOFT_JNI_MD_H_ */