1106 \ 1107 /* unsafe memory references (there are a lot of them...) */ \ 1108 do_signature(getReference_signature, "(Ljava/lang/Object;J)Ljava/lang/Object;") \ 1109 do_signature(putReference_signature, "(Ljava/lang/Object;JLjava/lang/Object;)V") \ 1110 do_signature(getBoolean_signature, "(Ljava/lang/Object;J)Z") \ 1111 do_signature(putBoolean_signature, "(Ljava/lang/Object;JZ)V") \ 1112 do_signature(getByte_signature, "(Ljava/lang/Object;J)B") \ 1113 do_signature(putByte_signature, "(Ljava/lang/Object;JB)V") \ 1114 do_signature(getShort_signature, "(Ljava/lang/Object;J)S") \ 1115 do_signature(putShort_signature, "(Ljava/lang/Object;JS)V") \ 1116 do_signature(getChar_signature, "(Ljava/lang/Object;J)C") \ 1117 do_signature(putChar_signature, "(Ljava/lang/Object;JC)V") \ 1118 do_signature(getInt_signature, "(Ljava/lang/Object;J)I") \ 1119 do_signature(putInt_signature, "(Ljava/lang/Object;JI)V") \ 1120 do_signature(getLong_signature, "(Ljava/lang/Object;J)J") \ 1121 do_signature(putLong_signature, "(Ljava/lang/Object;JJ)V") \ 1122 do_signature(getFloat_signature, "(Ljava/lang/Object;J)F") \ 1123 do_signature(putFloat_signature, "(Ljava/lang/Object;JF)V") \ 1124 do_signature(getDouble_signature, "(Ljava/lang/Object;J)D") \ 1125 do_signature(putDouble_signature, "(Ljava/lang/Object;JD)V") \ 1126 \ 1127 do_name(getReference_name,"getReference") do_name(putReference_name,"putReference") \ 1128 do_name(getBoolean_name,"getBoolean") do_name(putBoolean_name,"putBoolean") \ 1129 do_name(getByte_name,"getByte") do_name(putByte_name,"putByte") \ 1130 do_name(getShort_name,"getShort") do_name(putShort_name,"putShort") \ 1131 do_name(getChar_name,"getChar") do_name(putChar_name,"putChar") \ 1132 do_name(getInt_name,"getInt") do_name(putInt_name,"putInt") \ 1133 do_name(getLong_name,"getLong") do_name(putLong_name,"putLong") \ 1134 do_name(getFloat_name,"getFloat") do_name(putFloat_name,"putFloat") \ 1135 do_name(getDouble_name,"getDouble") do_name(putDouble_name,"putDouble") \ 1136 \ 1137 do_intrinsic(_getReference, jdk_internal_misc_Unsafe, getReference_name, getReference_signature, F_RN) \ 1138 do_intrinsic(_getBoolean, jdk_internal_misc_Unsafe, getBoolean_name, getBoolean_signature, F_RN) \ 1139 do_intrinsic(_getByte, jdk_internal_misc_Unsafe, getByte_name, getByte_signature, F_RN) \ 1140 do_intrinsic(_getShort, jdk_internal_misc_Unsafe, getShort_name, getShort_signature, F_RN) \ 1141 do_intrinsic(_getChar, jdk_internal_misc_Unsafe, getChar_name, getChar_signature, F_RN) \ 1142 do_intrinsic(_getInt, jdk_internal_misc_Unsafe, getInt_name, getInt_signature, F_RN) \ 1143 do_intrinsic(_getLong, jdk_internal_misc_Unsafe, getLong_name, getLong_signature, F_RN) \ 1144 do_intrinsic(_getFloat, jdk_internal_misc_Unsafe, getFloat_name, getFloat_signature, F_RN) \ 1145 do_intrinsic(_getDouble, jdk_internal_misc_Unsafe, getDouble_name, getDouble_signature, F_RN) \ 1146 do_intrinsic(_putReference, jdk_internal_misc_Unsafe, putReference_name, putReference_signature, F_RN) \ 1147 do_intrinsic(_putBoolean, jdk_internal_misc_Unsafe, putBoolean_name, putBoolean_signature, F_RN) \ 1148 do_intrinsic(_putByte, jdk_internal_misc_Unsafe, putByte_name, putByte_signature, F_RN) \ 1149 do_intrinsic(_putShort, jdk_internal_misc_Unsafe, putShort_name, putShort_signature, F_RN) \ 1150 do_intrinsic(_putChar, jdk_internal_misc_Unsafe, putChar_name, putChar_signature, F_RN) \ 1151 do_intrinsic(_putInt, jdk_internal_misc_Unsafe, putInt_name, putInt_signature, F_RN) \ 1152 do_intrinsic(_putLong, jdk_internal_misc_Unsafe, putLong_name, putLong_signature, F_RN) \ 1153 do_intrinsic(_putFloat, jdk_internal_misc_Unsafe, putFloat_name, putFloat_signature, F_RN) \ 1154 do_intrinsic(_putDouble, jdk_internal_misc_Unsafe, putDouble_name, putDouble_signature, F_RN) \ 1155 \ 1156 do_name(getReferenceVolatile_name,"getReferenceVolatile") do_name(putReferenceVolatile_name,"putReferenceVolatile") \ 1157 do_name(getBooleanVolatile_name,"getBooleanVolatile") do_name(putBooleanVolatile_name,"putBooleanVolatile") \ 1158 do_name(getByteVolatile_name,"getByteVolatile") do_name(putByteVolatile_name,"putByteVolatile") \ 1159 do_name(getShortVolatile_name,"getShortVolatile") do_name(putShortVolatile_name,"putShortVolatile") \ 1160 do_name(getCharVolatile_name,"getCharVolatile") do_name(putCharVolatile_name,"putCharVolatile") \ 1161 do_name(getIntVolatile_name,"getIntVolatile") do_name(putIntVolatile_name,"putIntVolatile") \ 1162 do_name(getLongVolatile_name,"getLongVolatile") do_name(putLongVolatile_name,"putLongVolatile") \ 1163 do_name(getFloatVolatile_name,"getFloatVolatile") do_name(putFloatVolatile_name,"putFloatVolatile") \ 1164 do_name(getDoubleVolatile_name,"getDoubleVolatile") do_name(putDoubleVolatile_name,"putDoubleVolatile") \ 1165 \ 1166 do_intrinsic(_getReferenceVolatile, jdk_internal_misc_Unsafe, getReferenceVolatile_name, getReference_signature, F_RN) \ 1167 do_intrinsic(_getBooleanVolatile, jdk_internal_misc_Unsafe, getBooleanVolatile_name, getBoolean_signature, F_RN) \ 1168 do_intrinsic(_getByteVolatile, jdk_internal_misc_Unsafe, getByteVolatile_name, getByte_signature, F_RN) \ 1169 do_intrinsic(_getShortVolatile, jdk_internal_misc_Unsafe, getShortVolatile_name, getShort_signature, F_RN) \ 1170 do_intrinsic(_getCharVolatile, jdk_internal_misc_Unsafe, getCharVolatile_name, getChar_signature, F_RN) \ 1171 do_intrinsic(_getIntVolatile, jdk_internal_misc_Unsafe, getIntVolatile_name, getInt_signature, F_RN) \ 1172 do_intrinsic(_getLongVolatile, jdk_internal_misc_Unsafe, getLongVolatile_name, getLong_signature, F_RN) \ 1173 do_intrinsic(_getFloatVolatile, jdk_internal_misc_Unsafe, getFloatVolatile_name, getFloat_signature, F_RN) \ 1174 do_intrinsic(_getDoubleVolatile, jdk_internal_misc_Unsafe, getDoubleVolatile_name, getDouble_signature, F_RN) \ | 1106 \ 1107 /* unsafe memory references (there are a lot of them...) */ \ 1108 do_signature(getReference_signature, "(Ljava/lang/Object;J)Ljava/lang/Object;") \ 1109 do_signature(putReference_signature, "(Ljava/lang/Object;JLjava/lang/Object;)V") \ 1110 do_signature(getBoolean_signature, "(Ljava/lang/Object;J)Z") \ 1111 do_signature(putBoolean_signature, "(Ljava/lang/Object;JZ)V") \ 1112 do_signature(getByte_signature, "(Ljava/lang/Object;J)B") \ 1113 do_signature(putByte_signature, "(Ljava/lang/Object;JB)V") \ 1114 do_signature(getShort_signature, "(Ljava/lang/Object;J)S") \ 1115 do_signature(putShort_signature, "(Ljava/lang/Object;JS)V") \ 1116 do_signature(getChar_signature, "(Ljava/lang/Object;J)C") \ 1117 do_signature(putChar_signature, "(Ljava/lang/Object;JC)V") \ 1118 do_signature(getInt_signature, "(Ljava/lang/Object;J)I") \ 1119 do_signature(putInt_signature, "(Ljava/lang/Object;JI)V") \ 1120 do_signature(getLong_signature, "(Ljava/lang/Object;J)J") \ 1121 do_signature(putLong_signature, "(Ljava/lang/Object;JJ)V") \ 1122 do_signature(getFloat_signature, "(Ljava/lang/Object;J)F") \ 1123 do_signature(putFloat_signature, "(Ljava/lang/Object;JF)V") \ 1124 do_signature(getDouble_signature, "(Ljava/lang/Object;J)D") \ 1125 do_signature(putDouble_signature, "(Ljava/lang/Object;JD)V") \ 1126 do_signature(getValue_signature, "(Ljava/lang/Object;JLjava/lang/Class;)Ljava/lang/Object;") \ 1127 do_signature(putValue_signature, "(Ljava/lang/Object;JLjava/lang/Class;Ljava/lang/Object;)V") \ 1128 \ 1129 do_name(getReference_name,"getReference") do_name(putReference_name,"putReference") \ 1130 do_name(getBoolean_name,"getBoolean") do_name(putBoolean_name,"putBoolean") \ 1131 do_name(getByte_name,"getByte") do_name(putByte_name,"putByte") \ 1132 do_name(getShort_name,"getShort") do_name(putShort_name,"putShort") \ 1133 do_name(getChar_name,"getChar") do_name(putChar_name,"putChar") \ 1134 do_name(getInt_name,"getInt") do_name(putInt_name,"putInt") \ 1135 do_name(getLong_name,"getLong") do_name(putLong_name,"putLong") \ 1136 do_name(getFloat_name,"getFloat") do_name(putFloat_name,"putFloat") \ 1137 do_name(getDouble_name,"getDouble") do_name(putDouble_name,"putDouble") \ 1138 do_name(getValue_name,"getValue") do_name(putValue_name,"putValue") \ 1139 do_name(makePrivateBuffer_name,"makePrivateBuffer") \ 1140 do_name(finishPrivateBuffer_name,"finishPrivateBuffer") \ 1141 \ 1142 do_intrinsic(_getReference, jdk_internal_misc_Unsafe, getReference_name, getReference_signature, F_RN) \ 1143 do_intrinsic(_getBoolean, jdk_internal_misc_Unsafe, getBoolean_name, getBoolean_signature, F_RN) \ 1144 do_intrinsic(_getByte, jdk_internal_misc_Unsafe, getByte_name, getByte_signature, F_RN) \ 1145 do_intrinsic(_getShort, jdk_internal_misc_Unsafe, getShort_name, getShort_signature, F_RN) \ 1146 do_intrinsic(_getChar, jdk_internal_misc_Unsafe, getChar_name, getChar_signature, F_RN) \ 1147 do_intrinsic(_getInt, jdk_internal_misc_Unsafe, getInt_name, getInt_signature, F_RN) \ 1148 do_intrinsic(_getLong, jdk_internal_misc_Unsafe, getLong_name, getLong_signature, F_RN) \ 1149 do_intrinsic(_getFloat, jdk_internal_misc_Unsafe, getFloat_name, getFloat_signature, F_RN) \ 1150 do_intrinsic(_getDouble, jdk_internal_misc_Unsafe, getDouble_name, getDouble_signature, F_RN) \ 1151 do_intrinsic(_getValue, jdk_internal_misc_Unsafe, getValue_name, getValue_signature, F_RN) \ 1152 do_intrinsic(_putReference, jdk_internal_misc_Unsafe, putReference_name, putReference_signature, F_RN) \ 1153 do_intrinsic(_putBoolean, jdk_internal_misc_Unsafe, putBoolean_name, putBoolean_signature, F_RN) \ 1154 do_intrinsic(_putByte, jdk_internal_misc_Unsafe, putByte_name, putByte_signature, F_RN) \ 1155 do_intrinsic(_putShort, jdk_internal_misc_Unsafe, putShort_name, putShort_signature, F_RN) \ 1156 do_intrinsic(_putChar, jdk_internal_misc_Unsafe, putChar_name, putChar_signature, F_RN) \ 1157 do_intrinsic(_putInt, jdk_internal_misc_Unsafe, putInt_name, putInt_signature, F_RN) \ 1158 do_intrinsic(_putLong, jdk_internal_misc_Unsafe, putLong_name, putLong_signature, F_RN) \ 1159 do_intrinsic(_putFloat, jdk_internal_misc_Unsafe, putFloat_name, putFloat_signature, F_RN) \ 1160 do_intrinsic(_putDouble, jdk_internal_misc_Unsafe, putDouble_name, putDouble_signature, F_RN) \ 1161 do_intrinsic(_putValue, jdk_internal_misc_Unsafe, putValue_name, putValue_signature, F_RN) \ 1162 \ 1163 do_intrinsic(_makePrivateBuffer, jdk_internal_misc_Unsafe, makePrivateBuffer_name, object_object_signature, F_RN) \ 1164 do_intrinsic(_finishPrivateBuffer, jdk_internal_misc_Unsafe, finishPrivateBuffer_name, object_object_signature, F_RN) \ 1165 \ 1166 do_name(getReferenceVolatile_name,"getReferenceVolatile") do_name(putReferenceVolatile_name,"putReferenceVolatile") \ 1167 do_name(getBooleanVolatile_name,"getBooleanVolatile") do_name(putBooleanVolatile_name,"putBooleanVolatile") \ 1168 do_name(getByteVolatile_name,"getByteVolatile") do_name(putByteVolatile_name,"putByteVolatile") \ 1169 do_name(getShortVolatile_name,"getShortVolatile") do_name(putShortVolatile_name,"putShortVolatile") \ 1170 do_name(getCharVolatile_name,"getCharVolatile") do_name(putCharVolatile_name,"putCharVolatile") \ 1171 do_name(getIntVolatile_name,"getIntVolatile") do_name(putIntVolatile_name,"putIntVolatile") \ 1172 do_name(getLongVolatile_name,"getLongVolatile") do_name(putLongVolatile_name,"putLongVolatile") \ 1173 do_name(getFloatVolatile_name,"getFloatVolatile") do_name(putFloatVolatile_name,"putFloatVolatile") \ 1174 do_name(getDoubleVolatile_name,"getDoubleVolatile") do_name(putDoubleVolatile_name,"putDoubleVolatile") \ 1175 \ 1176 do_intrinsic(_getReferenceVolatile, jdk_internal_misc_Unsafe, getReferenceVolatile_name, getReference_signature, F_RN) \ 1177 do_intrinsic(_getBooleanVolatile, jdk_internal_misc_Unsafe, getBooleanVolatile_name, getBoolean_signature, F_RN) \ 1178 do_intrinsic(_getByteVolatile, jdk_internal_misc_Unsafe, getByteVolatile_name, getByte_signature, F_RN) \ 1179 do_intrinsic(_getShortVolatile, jdk_internal_misc_Unsafe, getShortVolatile_name, getShort_signature, F_RN) \ 1180 do_intrinsic(_getCharVolatile, jdk_internal_misc_Unsafe, getCharVolatile_name, getChar_signature, F_RN) \ 1181 do_intrinsic(_getIntVolatile, jdk_internal_misc_Unsafe, getIntVolatile_name, getInt_signature, F_RN) \ 1182 do_intrinsic(_getLongVolatile, jdk_internal_misc_Unsafe, getLongVolatile_name, getLong_signature, F_RN) \ 1183 do_intrinsic(_getFloatVolatile, jdk_internal_misc_Unsafe, getFloatVolatile_name, getFloat_signature, F_RN) \ 1184 do_intrinsic(_getDoubleVolatile, jdk_internal_misc_Unsafe, getDoubleVolatile_name, getDouble_signature, F_RN) \ |