| @@ -20,7 +20,7 @@ include "jni.m"; · 19 unmodified lines |
| 20 | 20 | JObject : import jni; |
| 21 | 21 | |
| 22 | 22 | #>> extra pre includes here |
| 23 | | − |
| 23 | + low: Low; |
| 24 | 24 | #<< |
| 25 | 25 | |
| 26 | 26 | include "Unsafe_L.m"; |
| @@ -34,285 +34,330 @@ init( jni_p : JNI ) · 7 unmodified lines |
| 34 | 34 | # save java native inteface mod instance |
| 35 | 35 | jni = jni_p; |
| 36 | 36 | #>>extra initialization here |
| 37 | + low = jni->LowMod(); |
| 37 | 38 | #<< |
| 38 | 39 | } |
| 39 | 40 | |
| 40 | 41 | allocateInstance_rClass_rObject( this : ref Unsafe_obj, p0 : JClass) : JObject |
| 41 | 42 | {#>> |
| 43 | + # FIXME |
| 42 | 44 | return nil; |
| 43 | 45 | }#<< |
| 44 | 46 | |
| 45 | 47 | copyMemory_rObject_J_rObject_J_J_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : JObject,p3 : big,p4 : big) |
| 46 | 48 | {#>> |
| 49 | + # FIXME |
| 47 | 50 | }#<< |
| 48 | 51 | |
| 49 | 52 | park_Z_J_V( this : ref Unsafe_obj, p0 : byte,p1 : big) |
| 50 | 53 | {#>> |
| 54 | + # FIXME |
| 51 | 55 | }#<< |
| 52 | 56 | |
| 53 | 57 | unpark_rObject_V( this : ref Unsafe_obj, p0 : JObject) |
| 54 | 58 | {#>> |
| 59 | + # FIXME |
| 55 | 60 | }#<< |
| 56 | 61 | |
| 57 | 62 | getObject_rObject_J_rObject( this : ref Unsafe_obj, p0 : JObject,p1 : big) : JObject |
| 58 | 63 | {#>> |
| 59 | | − return nil; |
| 64 | + return low->GetObj(p0.mod, int p1); |
| 60 | 65 | }#<< |
| 61 | 66 | |
| 62 | 67 | putObject_rObject_J_rObject_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : JObject) |
| 63 | 68 | {#>> |
| 69 | + low->SetObj(p0.mod, int p1, p2); |
| 64 | 70 | }#<< |
| 65 | 71 | |
| 66 | | −getBoolean_rObject_J_Z( this : ref Unsafe_obj, p0 : JObject,p1 : big) : byte |
| 72 | +getBoolean_rObject_J_Z( this : ref Unsafe_obj, p0 : JObject,p1 : big) : int |
| 67 | 73 | {#>> |
| 68 | | − return byte 0; |
| 74 | + return low->GetInt(p0.mod, int p1); |
| 69 | 75 | }#<< |
| 70 | 76 | |
| 71 | | −putBoolean_rObject_J_Z_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : byte) |
| 77 | +putBoolean_rObject_J_Z_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 72 | 78 | {#>> |
| 79 | + low->SetInt(p0.mod, int p1, p2); |
| 73 | 80 | }#<< |
| 74 | 81 | |
| 75 | 82 | getByte_J_B( this : ref Unsafe_obj, p0 : big) : byte |
| 76 | 83 | {#>> |
| 84 | + # FIXME |
| 77 | 85 | return byte 0; |
| 78 | 86 | }#<< |
| 79 | 87 | |
| 80 | 88 | getByte_rObject_J_B( this : ref Unsafe_obj, p0 : JObject,p1 : big) : byte |
| 81 | 89 | {#>> |
| 82 | | − return byte 0; |
| 90 | + return low->GetByte(p0.mod, int p1); |
| 83 | 91 | }#<< |
| 84 | 92 | |
| 85 | 93 | putByte_J_B_V( this : ref Unsafe_obj, p0 : big,p1 : byte) |
| 86 | 94 | {#>> |
| 95 | + # FIXME |
| 87 | 96 | }#<< |
| 88 | 97 | |
| 89 | 98 | putByte_rObject_J_B_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : byte) |
| 90 | 99 | {#>> |
| 100 | + low->SetByte(p0.mod, int p1, p2); |
| 91 | 101 | }#<< |
| 92 | 102 | |
| 93 | 103 | getShort_rObject_J_S( this : ref Unsafe_obj, p0 : JObject,p1 : big) : int |
| 94 | 104 | {#>> |
| 95 | | − return 0; |
| 105 | + return low->GetInt(p0.mod, int p1); |
| 96 | 106 | }#<< |
| 97 | 107 | |
| 98 | 108 | getShort_J_S( this : ref Unsafe_obj, p0 : big) : int |
| 99 | 109 | {#>> |
| 110 | + # FIXME |
| 100 | 111 | return 0; |
| 101 | 112 | }#<< |
| 102 | 113 | |
| 103 | 114 | putShort_rObject_J_S_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 104 | 115 | {#>> |
| 116 | + low->SetInt(p0.mod, int p1, p2); |
| 105 | 117 | }#<< |
| 106 | 118 | |
| 107 | 119 | putShort_J_S_V( this : ref Unsafe_obj, p0 : big,p1 : int) |
| 108 | 120 | {#>> |
| 121 | + # FIXME |
| 109 | 122 | }#<< |
| 110 | 123 | |
| 111 | 124 | getChar_J_C( this : ref Unsafe_obj, p0 : big) : int |
| 112 | 125 | {#>> |
| 126 | + # FIXME |
| 113 | 127 | return 0; |
| 114 | 128 | }#<< |
| 115 | 129 | |
| 116 | 130 | getChar_rObject_J_C( this : ref Unsafe_obj, p0 : JObject,p1 : big) : int |
| 117 | 131 | {#>> |
| 118 | | − return 0; |
| 132 | + return low->GetInt(p0.mod, int p1); |
| 119 | 133 | }#<< |
| 120 | 134 | |
| 121 | 135 | putChar_J_C_V( this : ref Unsafe_obj, p0 : big,p1 : int) |
| 122 | 136 | {#>> |
| 137 | + # FIXME |
| 123 | 138 | }#<< |
| 124 | 139 | |
| 125 | 140 | putChar_rObject_J_C_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 126 | 141 | {#>> |
| 142 | + low->SetInt(p0.mod, int p1, p2); |
| 127 | 143 | }#<< |
| 128 | 144 | |
| 129 | 145 | getInt_rObject_J_I( this : ref Unsafe_obj, p0 : JObject,p1 : big) : int |
| 130 | 146 | {#>> |
| 131 | | − return 0; |
| 147 | + return low->GetInt(p0.mod, int p1); |
| 132 | 148 | }#<< |
| 133 | 149 | |
| 134 | 150 | getInt_J_I( this : ref Unsafe_obj, p0 : big) : int |
| 135 | 151 | {#>> |
| 152 | + # FIXME |
| 136 | 153 | return 0; |
| 137 | 154 | }#<< |
| 138 | 155 | |
| 139 | 156 | putInt_J_I_V( this : ref Unsafe_obj, p0 : big,p1 : int) |
| 140 | 157 | {#>> |
| 158 | + # FIXME |
| 141 | 159 | }#<< |
| 142 | 160 | |
| 143 | 161 | putInt_rObject_J_I_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 144 | 162 | {#>> |
| 163 | + low->SetInt(p0.mod, int p1, p2); |
| 145 | 164 | }#<< |
| 146 | 165 | |
| 147 | 166 | getLong_rObject_J_J( this : ref Unsafe_obj, p0 : JObject,p1 : big) : big |
| 148 | 167 | {#>> |
| 149 | | − return big 0; |
| 168 | + return low->GetBig(p0.mod, int p1); |
| 150 | 169 | }#<< |
| 151 | 170 | |
| 152 | 171 | getLong_J_J( this : ref Unsafe_obj, p0 : big) : big |
| 153 | 172 | {#>> |
| 173 | + # FIXME |
| 154 | 174 | return big 0; |
| 155 | 175 | }#<< |
| 156 | 176 | |
| 157 | 177 | putLong_J_J_V( this : ref Unsafe_obj, p0 : big,p1 : big) |
| 158 | 178 | {#>> |
| 179 | + # FIXME |
| 159 | 180 | }#<< |
| 160 | 181 | |
| 161 | 182 | putLong_rObject_J_J_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : big) |
| 162 | 183 | {#>> |
| 184 | + low->SetBig(p0.mod, int p1, p2); |
| 163 | 185 | }#<< |
| 164 | 186 | |
| 165 | 187 | getFloat_J_F( this : ref Unsafe_obj, p0 : big) : real |
| 166 | 188 | {#>> |
| 189 | + # FIXME |
| 167 | 190 | return 0.0; |
| 168 | 191 | }#<< |
| 169 | 192 | |
| 170 | 193 | getFloat_rObject_J_F( this : ref Unsafe_obj, p0 : JObject,p1 : big) : real |
| 171 | 194 | {#>> |
| 172 | | − return 0.0; |
| 195 | + return low->GetReal(p0.mod, int p1); |
| 173 | 196 | }#<< |
| 174 | 197 | |
| 175 | 198 | putFloat_J_F_V( this : ref Unsafe_obj, p0 : big,p1 : real) |
| 176 | 199 | {#>> |
| 200 | + # FIXME |
| 177 | 201 | }#<< |
| 178 | 202 | |
| 179 | 203 | putFloat_rObject_J_F_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : real) |
| 180 | 204 | {#>> |
| 205 | + low->SetReal(p0.mod, int p1, p2); |
| 181 | 206 | }#<< |
| 182 | 207 | |
| 183 | 208 | getDouble_J_D( this : ref Unsafe_obj, p0 : big) : real |
| 184 | 209 | {#>> |
| 210 | + # FIXME |
| 185 | 211 | return 0.0; |
| 186 | 212 | }#<< |
| 187 | 213 | |
| 188 | 214 | getDouble_rObject_J_D( this : ref Unsafe_obj, p0 : JObject,p1 : big) : real |
| 189 | 215 | {#>> |
| 190 | | − return 0.0; |
| 216 | + return low->GetReal(p0.mod, int p1); |
| 191 | 217 | }#<< |
| 192 | 218 | |
| 193 | 219 | putDouble_J_D_V( this : ref Unsafe_obj, p0 : big,p1 : real) |
| 194 | 220 | {#>> |
| 221 | + # FIXME |
| 195 | 222 | }#<< |
| 196 | 223 | |
| 197 | 224 | putDouble_rObject_J_D_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : real) |
| 198 | 225 | {#>> |
| 226 | + low->SetReal(p0.mod, int p1, p2); |
| 199 | 227 | }#<< |
| 200 | 228 | |
| 201 | 229 | getObjectVolatile_rObject_J_rObject( this : ref Unsafe_obj, p0 : JObject,p1 : big) : JObject |
| 202 | 230 | {#>> |
| 203 | | − return nil; |
| 231 | + return getObject_rObject_J_rObject(this, p0, p1); |
| 204 | 232 | }#<< |
| 205 | 233 | |
| 206 | 234 | putObjectVolatile_rObject_J_rObject_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : JObject) |
| 207 | 235 | {#>> |
| 236 | + putObject_rObject_J_rObject_V(this, p0, p1, p2); |
| 208 | 237 | }#<< |
| 209 | 238 | |
| 210 | | −getBooleanVolatile_rObject_J_Z( this : ref Unsafe_obj, p0 : JObject,p1 : big) : byte |
| 239 | +getBooleanVolatile_rObject_J_Z( this : ref Unsafe_obj, p0 : JObject,p1 : big) : int |
| 211 | 240 | {#>> |
| 212 | | − return byte 0; |
| 241 | + return getBoolean_rObject_J_Z(this, p0, p1); |
| 213 | 242 | }#<< |
| 214 | 243 | |
| 215 | | −putBooleanVolatile_rObject_J_Z_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : byte) |
| 244 | +putBooleanVolatile_rObject_J_Z_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 216 | 245 | {#>> |
| 246 | + putBoolean_rObject_J_Z_V(this, p0, p1, p2); |
| 217 | 247 | }#<< |
| 218 | 248 | |
| 219 | 249 | getByteVolatile_rObject_J_B( this : ref Unsafe_obj, p0 : JObject,p1 : big) : byte |
| 220 | 250 | {#>> |
| 221 | | − return byte 0; |
| 251 | + return getByte_rObject_J_B(this, p0, p1); |
| 222 | 252 | }#<< |
| 223 | 253 | |
| 224 | 254 | putByteVolatile_rObject_J_B_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : byte) |
| 225 | 255 | {#>> |
| 256 | + putByte_rObject_J_B_V(this, p0, p1, p2); |
| 226 | 257 | }#<< |
| 227 | 258 | |
| 228 | 259 | getShortVolatile_rObject_J_S( this : ref Unsafe_obj, p0 : JObject,p1 : big) : int |
| 229 | 260 | {#>> |
| 230 | | − return 0; |
| 261 | + return getShort_rObject_J_S(this, p0, p1); |
| 231 | 262 | }#<< |
| 232 | 263 | |
| 233 | 264 | putShortVolatile_rObject_J_S_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 234 | 265 | {#>> |
| 266 | + putShort_rObject_J_S_V(this, p0, p1, p2); |
| 235 | 267 | }#<< |
| 236 | 268 | |
| 237 | 269 | getCharVolatile_rObject_J_C( this : ref Unsafe_obj, p0 : JObject,p1 : big) : int |
| 238 | 270 | {#>> |
| 239 | | − return 0; |
| 271 | + return getChar_rObject_J_C(this, p0, p1); |
| 240 | 272 | }#<< |
| 241 | 273 | |
| 242 | 274 | putCharVolatile_rObject_J_C_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 243 | 275 | {#>> |
| 276 | + putChar_rObject_J_C_V(this, p0, p1, p2); |
| 244 | 277 | }#<< |
| 245 | 278 | |
| 246 | 279 | getIntVolatile_rObject_J_I( this : ref Unsafe_obj, p0 : JObject,p1 : big) : int |
| 247 | 280 | {#>> |
| 248 | | − return 0; |
| 281 | + return getInt_rObject_J_I(this, p0, p1); |
| 249 | 282 | }#<< |
| 250 | 283 | |
| 251 | 284 | putIntVolatile_rObject_J_I_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 252 | 285 | {#>> |
| 286 | + putInt_rObject_J_I_V(this, p0, p1, p2); |
| 253 | 287 | }#<< |
| 254 | 288 | |
| 255 | 289 | getLongVolatile_rObject_J_J( this : ref Unsafe_obj, p0 : JObject,p1 : big) : big |
| 256 | 290 | {#>> |
| 257 | | − return big 0; |
| 291 | + return getLong_rObject_J_J(this, p0, p1); |
| 258 | 292 | }#<< |
| 259 | 293 | |
| 260 | 294 | putLongVolatile_rObject_J_J_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : big) |
| 261 | 295 | {#>> |
| 296 | + putLong_rObject_J_J_V(this, p0, p1, p2); |
| 262 | 297 | }#<< |
| 263 | 298 | |
| 264 | 299 | getFloatVolatile_rObject_J_F( this : ref Unsafe_obj, p0 : JObject,p1 : big) : real |
| 265 | 300 | {#>> |
| 266 | | − return 0.0; |
| 301 | + return getFloat_rObject_J_F(this, p0, p1); |
| 267 | 302 | }#<< |
| 268 | 303 | |
| 269 | 304 | putFloatVolatile_rObject_J_F_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : real) |
| 270 | 305 | {#>> |
| 306 | + putFloat_rObject_J_F_V(this, p0, p1, p2); |
| 271 | 307 | }#<< |
| 272 | 308 | |
| 273 | 309 | getDoubleVolatile_rObject_J_D( this : ref Unsafe_obj, p0 : JObject,p1 : big) : real |
| 274 | 310 | {#>> |
| 275 | | − return 0.0; |
| 311 | + return getDouble_rObject_J_D(this, p0, p1); |
| 276 | 312 | }#<< |
| 277 | 313 | |
| 278 | 314 | putDoubleVolatile_rObject_J_D_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : real) |
| 279 | 315 | {#>> |
| 316 | + putDouble_rObject_J_D_V(this, p0, p1, p2); |
| 280 | 317 | }#<< |
| 281 | 318 | |
| 282 | 319 | getAddress_J_J( this : ref Unsafe_obj, p0 : big) : big |
| 283 | 320 | {#>> |
| 321 | + # FIXME |
| 284 | 322 | return big 0; |
| 285 | 323 | }#<< |
| 286 | 324 | |
| 287 | 325 | putAddress_J_J_V( this : ref Unsafe_obj, p0 : big,p1 : big) |
| 288 | 326 | {#>> |
| 327 | + # FIXME |
| 289 | 328 | }#<< |
| 290 | 329 | |
| 291 | 330 | compareAndSwapObject_rObject_J_rObject_rObject_Z( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : JObject,p3 : JObject) : byte |
| 292 | 331 | {#>> |
| 332 | + # FIXME |
| 293 | 333 | return byte 0; |
| 294 | 334 | }#<< |
| 295 | 335 | |
| 296 | 336 | compareAndSwapLong_rObject_J_J_J_Z( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : big,p3 : big) : byte |
| 297 | 337 | {#>> |
| 338 | + # FIXME |
| 298 | 339 | return byte 0; |
| 299 | 340 | }#<< |
| 300 | 341 | |
| 301 | 342 | compareAndSwapInt_rObject_J_I_I_Z( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int,p3 : int) : byte |
| 302 | 343 | {#>> |
| 344 | + # FIXME |
| 303 | 345 | return byte 0; |
| 304 | 346 | }#<< |
| 305 | 347 | |
| 306 | 348 | putOrderedObject_rObject_J_rObject_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : JObject) |
| 307 | 349 | {#>> |
| 350 | + putObject_rObject_J_rObject_V(this, p0, p1, p2); |
| 308 | 351 | }#<< |
| 309 | 352 | |
| 310 | 353 | putOrderedLong_rObject_J_J_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : big) |
| 311 | 354 | {#>> |
| 355 | + putOrderedLong_rObject_J_J_V(this, p0, p1, p2); |
| 312 | 356 | }#<< |
| 313 | 357 | |
| 314 | 358 | putOrderedInt_rObject_J_I_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : int) |
| 315 | 359 | {#>> |
| 360 | + putOrderedInt_rObject_J_I_V(this, p0, p1, p2); |
| 316 | 361 | }#<< |
| 317 | 362 | |
| 318 | 363 | registerNatives_V( ) |
| @@ -321,95 +366,115 @@ registerNatives_V( ) · 2 unmodified lines |
| 321 | 366 | |
| 322 | 367 | throwException_rThrowable_V( this : ref Unsafe_obj, p0 : JObject) |
| 323 | 368 | {#>> |
| 369 | + jni->Throw(p0); |
| 324 | 370 | }#<< |
| 325 | 371 | |
| 326 | 372 | defineClass_rString_aB_I_I_rClassLoader_rProtectionDomain_rClass( this : ref Unsafe_obj, p0 : JString,p1 : JArrayB,p2 : int,p3 : int,p4 : JObject,p5 : JObject) : JClass |
| 327 | 373 | {#>> |
| 374 | + jni->FatalError("defineAnonymousClass is not implemented"); |
| 328 | 375 | return nil; |
| 329 | 376 | }#<< |
| 330 | 377 | |
| 331 | 378 | defineClass_rString_aB_I_I_rClass( this : ref Unsafe_obj, p0 : JString,p1 : JArrayB,p2 : int,p3 : int) : JClass |
| 332 | 379 | {#>> |
| 380 | + jni->FatalError("defineAnonymousClass is not implemented"); |
| 333 | 381 | return nil; |
| 334 | 382 | }#<< |
| 335 | 383 | |
| 336 | 384 | objectFieldOffset_rField_J( this : ref Unsafe_obj, p0 : JObject) : big |
| 337 | 385 | {#>> |
| 386 | + # FIXME |
| 338 | 387 | return big 0; |
| 339 | 388 | }#<< |
| 340 | 389 | |
| 341 | 390 | staticFieldBase_rField_rObject( this : ref Unsafe_obj, p0 : JObject) : JObject |
| 342 | 391 | {#>> |
| 392 | + # FIXME |
| 343 | 393 | return nil; |
| 344 | 394 | }#<< |
| 345 | 395 | |
| 346 | 396 | allocateMemory_J_J( this : ref Unsafe_obj, p0 : big) : big |
| 347 | 397 | {#>> |
| 398 | + # FIXME |
| 348 | 399 | return big 0; |
| 349 | 400 | }#<< |
| 350 | 401 | |
| 351 | 402 | reallocateMemory_J_J_J( this : ref Unsafe_obj, p0 : big,p1 : big) : big |
| 352 | 403 | {#>> |
| 404 | + # FIXME |
| 353 | 405 | return big 0; |
| 354 | 406 | }#<< |
| 355 | 407 | |
| 356 | 408 | setMemory_rObject_J_J_B_V( this : ref Unsafe_obj, p0 : JObject,p1 : big,p2 : big,p3 : byte) |
| 357 | 409 | {#>> |
| 410 | + # FIXME |
| 358 | 411 | }#<< |
| 359 | 412 | |
| 360 | 413 | freeMemory_J_V( this : ref Unsafe_obj, p0 : big) |
| 361 | 414 | {#>> |
| 415 | + # FIXME |
| 362 | 416 | }#<< |
| 363 | 417 | |
| 364 | 418 | staticFieldOffset_rField_J( this : ref Unsafe_obj, p0 : JObject) : big |
| 365 | 419 | {#>> |
| 420 | + # FIXME |
| 366 | 421 | return big 0; |
| 367 | 422 | }#<< |
| 368 | 423 | |
| 369 | 424 | ensureClassInitialized_rClass_V( this : ref Unsafe_obj, p0 : JClass) |
| 370 | 425 | {#>> |
| 426 | + jni->FindClass(p0.class.name); |
| 371 | 427 | }#<< |
| 372 | 428 | |
| 373 | 429 | arrayBaseOffset_rClass_I( this : ref Unsafe_obj, p0 : JClass) : int |
| 374 | 430 | {#>> |
| 431 | + # FIXME |
| 375 | 432 | return 0; |
| 376 | 433 | }#<< |
| 377 | 434 | |
| 378 | 435 | arrayIndexScale_rClass_I( this : ref Unsafe_obj, p0 : JClass) : int |
| 379 | 436 | {#>> |
| 437 | + # FIXME |
| 380 | 438 | return 0; |
| 381 | 439 | }#<< |
| 382 | 440 | |
| 383 | 441 | addressSize_I( this : ref Unsafe_obj) : int |
| 384 | 442 | {#>> |
| 385 | | − return 0; |
| 443 | + # TODO: obtain that value somehow? |
| 444 | + return 4; |
| 386 | 445 | }#<< |
| 387 | 446 | |
| 388 | 447 | pageSize_I( this : ref Unsafe_obj) : int |
| 389 | 448 | {#>> |
| 449 | + # FIXME |
| 390 | 450 | return 0; |
| 391 | 451 | }#<< |
| 392 | 452 | |
| 393 | 453 | defineAnonymousClass_rClass_aB_aObject_rClass( this : ref Unsafe_obj, p0 : JClass,p1 : JArrayB,p2 : JArrayJObject) : JClass |
| 394 | 454 | {#>> |
| 455 | + jni->FatalError("defineAnonymousClass is not implemented"); |
| 395 | 456 | return nil; |
| 396 | 457 | }#<< |
| 397 | 458 | |
| 398 | 459 | monitorEnter_rObject_V( this : ref Unsafe_obj, p0 : JObject) |
| 399 | 460 | {#>> |
| 461 | + jni->MonitorEnter(p0); |
| 400 | 462 | }#<< |
| 401 | 463 | |
| 402 | 464 | monitorExit_rObject_V( this : ref Unsafe_obj, p0 : JObject) |
| 403 | 465 | {#>> |
| 466 | + jni->MonitorExit(p0); |
| 404 | 467 | }#<< |
| 405 | 468 | |
| 406 | | −tryMonitorEnter_rObject_Z( this : ref Unsafe_obj, p0 : JObject) : byte |
| 469 | +tryMonitorEnter_rObject_Z( this : ref Unsafe_obj, p0 : JObject) : int |
| 407 | 470 | {#>> |
| 408 | | − return byte 0; |
| 471 | + jni->MonitorEnter(p0); |
| 472 | + return 1; # TODO: check something |
| 409 | 473 | }#<< |
| 410 | 474 | |
| 411 | 475 | getLoadAverage_aD_I_I( this : ref Unsafe_obj, p0 : JArrayD,p1 : int) : int |
| 412 | 476 | {#>> |
| 477 | + # FIXME |
| 413 | 478 | return 0; |
| 414 | 479 | }#<< |
| 415 | 480 | |