comparison src/share/vm/oops/typeArrayOop.hpp @ 10889:ba1391deaca7

8150012: Better byte behavior for reflection Reviewed-by: kvn, jrose, kevinw, ahgross
author coleenp
date Sun, 21 Feb 2016 08:33:59 -0500
parents e06c15b0844e
children
comparison
equal deleted inserted replaced
13:e41dd5193061 14:55a164356503
94 94
95 jbyte byte_at(int which) const { return *byte_at_addr(which); } 95 jbyte byte_at(int which) const { return *byte_at_addr(which); }
96 void byte_at_put(int which, jbyte contents) { *byte_at_addr(which) = contents; } 96 void byte_at_put(int which, jbyte contents) { *byte_at_addr(which) = contents; }
97 97
98 jboolean bool_at(int which) const { return *bool_at_addr(which); } 98 jboolean bool_at(int which) const { return *bool_at_addr(which); }
99 void bool_at_put(int which, jboolean contents) { *bool_at_addr(which) = contents; } 99 void bool_at_put(int which, jboolean contents) { *bool_at_addr(which) = (((jint)contents) & 1); }
100 100
101 jchar char_at(int which) const { return *char_at_addr(which); } 101 jchar char_at(int which) const { return *char_at_addr(which); }
102 void char_at_put(int which, jchar contents) { *char_at_addr(which) = contents; } 102 void char_at_put(int which, jchar contents) { *char_at_addr(which) = contents; }
103 103
104 jint int_at(int which) const { return *int_at_addr(which); } 104 jint int_at(int which) const { return *int_at_addr(which); }