equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, 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. |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 |
25 |
26 #ifndef SHARE_VM_PRIMS_UNSAFE_HPP |
26 #ifndef SHARE_PRIMS_UNSAFE_HPP |
27 #define SHARE_VM_PRIMS_UNSAFE_HPP |
27 #define SHARE_PRIMS_UNSAFE_HPP |
28 |
28 |
29 #include "jni.h" |
29 #include "jni.h" |
30 |
30 |
31 extern "C" { |
31 extern "C" { |
32 void JNICALL JVM_RegisterJDKInternalMiscUnsafeMethods(JNIEnv *env, jclass unsafecls); |
32 void JNICALL JVM_RegisterJDKInternalMiscUnsafeMethods(JNIEnv *env, jclass unsafecls); |
34 |
34 |
35 jlong Unsafe_field_offset_to_byte_offset(jlong field_offset); |
35 jlong Unsafe_field_offset_to_byte_offset(jlong field_offset); |
36 |
36 |
37 jlong Unsafe_field_offset_from_byte_offset(jlong byte_offset); |
37 jlong Unsafe_field_offset_from_byte_offset(jlong byte_offset); |
38 |
38 |
39 #endif // SHARE_VM_PRIMS_UNSAFE_HPP |
39 #endif // SHARE_PRIMS_UNSAFE_HPP |