diff options
author | Sven Gothel <[email protected]> | 2013-04-13 23:04:01 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-04-13 23:04:01 +0200 |
commit | 86f5e7eac7544d2511b70c2142634c89c69d0594 (patch) | |
tree | d08a924d21039be71b1ca45d5dfea3a6df024687 /.externalToolBuilders/org.eclipse.jdt.core.javabuilder.launch | |
parent | 47333929fd4e563d61996654d2a435b52b904ef0 (diff) |
Fix Bug 715: Don't modify 'carray' pointer returned from GetPrimitiveArrayCritical(..)
The 'carray' pointer returned from GetPrimitiveArrayCritical(..) was moved about the array offset
and used in ReleasePrimitiveArrayCritical(..) to release the pinpointed memory.
Even though this 'is' a bug by violating the _sparse_ specification, Hotspot impl. doesn't use the value at all (NOP)
and hence this code didn't produce an error since .. (Same w/ Dalvik).
Now the array offset is added while passing the carray pointer to the native function call
and hence is no more modified and the orig. value is passed to ReleasePrimitiveArrayCritical(..).
Tested w/ GlueGen unit tests and all JOGL unit tests (on Linux x64 w/ 'a' hotspot VM).
Diffstat (limited to '.externalToolBuilders/org.eclipse.jdt.core.javabuilder.launch')
0 files changed, 0 insertions, 0 deletions